Tweaks to make menus work better

pull/223/head
Ruben Daniels 2015-09-23 16:46:38 -07:00
rodzic 1d9d07f483
commit bf45f18201
3 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -88,7 +88,7 @@
"c9.ide.format": "#b0bb91a623", "c9.ide.format": "#b0bb91a623",
"c9.ide.help.support": "#e95f98f87c", "c9.ide.help.support": "#e95f98f87c",
"c9.ide.imgeditor": "#66a9733dc1", "c9.ide.imgeditor": "#66a9733dc1",
"c9.ide.immediate": "#6cd73fca42", "c9.ide.immediate": "#9dc67b8232",
"c9.ide.installer": "#0fde9f0067", "c9.ide.installer": "#0fde9f0067",
"c9.ide.mount": "#da6ad73c5b", "c9.ide.mount": "#da6ad73c5b",
"c9.ide.navigate": "#c191d9b92f", "c9.ide.navigate": "#c191d9b92f",

Wyświetl plik

@ -738,6 +738,8 @@ apf.menu = function(struct, tagName){
* @param {String} value The value of the item to select. * @param {String} value The value of the item to select.
*/ */
this.select = function(group, value){ this.select = function(group, value){
this.selectedValue = value;
var nodes = this.childNodes; var nodes = this.childNodes;
var i, l = nodes.length; var i, l = nodes.length;
for (i = 0; i < l; i++) { for (i = 0; i < l; i++) {

Wyświetl plik

@ -114,6 +114,7 @@ define(function(require, module, exports) {
}; };
} }
wrap(apf.item.prototype, "checked", false); wrap(apf.item.prototype, "checked", false);
wrap(apf.item.prototype, "selected", false);
wrap(apf.spinner.prototype, "value", true); wrap(apf.spinner.prototype, "value", true);
wrap(apf.group.prototype, "value", false); wrap(apf.group.prototype, "value", false);
wrap(apf.checkbox.prototype, "value", false); wrap(apf.checkbox.prototype, "value", false);