diff --git a/build/js/ox.ui.js b/build/js/ox.ui.js index 35bc849b..0e784ed0 100644 --- a/build/js/ox.ui.js +++ b/build/js/ox.ui.js @@ -2282,6 +2282,15 @@ requires }; + that.getItem = function(id) { + var item; + $.each(that.menus, function(i, menu) { + item = menu.getItem(id); + return !item; + }); + return item; + }; + that.removeMenu = function() { }; @@ -2736,16 +2745,25 @@ requires } } - that.addItemAfter = function(item) { + that.addItem = function(item, position) + + that.addItemAfter = function(item, id) { }; - that.addItemBefore = function(item) { + that.addItemBefore = function(item, id) { }; that.getItem = function(id) { - + var item; + $.each(this.items, function(i, v) { + if (v.options("id") == id) { + item = v; + return false; + } + }); + return item; }; that.hasEnabledItems = function() {