From bf45f1820182f3d8ebf4120b757fdc1640cf77e5 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Wed, 23 Sep 2015 16:46:38 -0700 Subject: [PATCH] Tweaks to make menus work better --- package.json | 2 +- plugins/c9.ide.ui/lib/menu/menu.js | 2 ++ plugins/c9.ide.ui/ui.js | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 70ba314b..3eb09394 100644 --- a/package.json +++ b/package.json @@ -88,7 +88,7 @@ "c9.ide.format": "#b0bb91a623", "c9.ide.help.support": "#e95f98f87c", "c9.ide.imgeditor": "#66a9733dc1", - "c9.ide.immediate": "#6cd73fca42", + "c9.ide.immediate": "#9dc67b8232", "c9.ide.installer": "#0fde9f0067", "c9.ide.mount": "#da6ad73c5b", "c9.ide.navigate": "#c191d9b92f", diff --git a/plugins/c9.ide.ui/lib/menu/menu.js b/plugins/c9.ide.ui/lib/menu/menu.js index f2525684..711e7ac9 100644 --- a/plugins/c9.ide.ui/lib/menu/menu.js +++ b/plugins/c9.ide.ui/lib/menu/menu.js @@ -738,6 +738,8 @@ apf.menu = function(struct, tagName){ * @param {String} value The value of the item to select. */ this.select = function(group, value){ + this.selectedValue = value; + var nodes = this.childNodes; var i, l = nodes.length; for (i = 0; i < l; i++) { diff --git a/plugins/c9.ide.ui/ui.js b/plugins/c9.ide.ui/ui.js index d45b7f5b..3b5b7030 100644 --- a/plugins/c9.ide.ui/ui.js +++ b/plugins/c9.ide.ui/ui.js @@ -114,6 +114,7 @@ define(function(require, module, exports) { }; } wrap(apf.item.prototype, "checked", false); + wrap(apf.item.prototype, "selected", false); wrap(apf.spinner.prototype, "value", true); wrap(apf.group.prototype, "value", false); wrap(apf.checkbox.prototype, "value", false);