diff --git a/source/Ox.UI/js/Menu/MenuItem.js b/source/Ox.UI/js/Menu/MenuItem.js index eba02044..71d7695c 100644 --- a/source/Ox.UI/js/Menu/MenuItem.js +++ b/source/Ox.UI/js/Menu/MenuItem.js @@ -49,6 +49,9 @@ Ox.MenuItem = function(options, self) { }, disabled: function() { that.toggleClass('OxDisabled'); + self.options.file && that.$button.options({ + disabled: self.options.disabled + }); }, title: function() { self.options.title = Ox.makeArray(self.options.title); @@ -93,6 +96,7 @@ Ox.MenuItem = function(options, self) { self.options.file ? that.$button = Ox.FileButton(Ox.extend({ + disabled: self.options.disabled, title: self.options.title[0] }, self.options.file)).bindEvent({ click: function(data) {