kopia lustrzana https://github.com/c9/core
Merge pull request +7055 from c9/fix/vim
Fixed changing keyboard mode in preference panepull/85/head
commit
3b72d23c98
|
@ -202,19 +202,24 @@ define(function(require, exports, module) {
|
||||||
}).join("");
|
}).join("");
|
||||||
if (data) model.load("<items>" + data + "</items>");
|
if (data) model.load("<items>" + data + "</items>");
|
||||||
|
|
||||||
|
var dd;
|
||||||
childNodes = [
|
childNodes = [
|
||||||
new ui.label({ width : width, maxwidth: maxwidth, caption: name + ":" }),
|
new ui.label({ width : width, maxwidth: maxwidth, caption: name + ":" }),
|
||||||
new ui.dropdown({
|
dd = new ui.dropdown({
|
||||||
model: model,
|
model: model,
|
||||||
width: options.width || widths.dropdown,
|
width: options.width || widths.dropdown,
|
||||||
skin: "black_dropdown",
|
skin: "black_dropdown",
|
||||||
margin: "-1 0 0 0",
|
margin: "-1 0 0 0",
|
||||||
zindex: 100,
|
zindex: 100,
|
||||||
onafterchange: options.onchange && function(e) {
|
onafterchange: function(e) {
|
||||||
options.onchange({ value: e.value || e.args[2] });
|
if (options.path)
|
||||||
|
settings.set(options.path, e.value);
|
||||||
|
|
||||||
|
if (options.onchange)
|
||||||
|
options.onchange({ value: e.value || e.args[2] });
|
||||||
},
|
},
|
||||||
value: options.path
|
value: options.path
|
||||||
? createBind(options.path) //{settings.model}::
|
? settings.get(options.path)
|
||||||
: (options.defaultValue || ""),
|
: (options.defaultValue || ""),
|
||||||
each: options.each || "[item]",
|
each: options.each || "[item]",
|
||||||
caption: options.caption || "[text()]",
|
caption: options.caption || "[text()]",
|
||||||
|
@ -222,6 +227,10 @@ define(function(require, exports, module) {
|
||||||
"empty-message" : options["empty-message"]
|
"empty-message" : options["empty-message"]
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
settings.on(options.path, function(){
|
||||||
|
dd.setValue(settings.get(options.path));
|
||||||
|
}, plugin);
|
||||||
break;
|
break;
|
||||||
case "spinner":
|
case "spinner":
|
||||||
childNodes = [
|
childNodes = [
|
||||||
|
|
Ładowanie…
Reference in New Issue