diff --git a/cms/static/js/menu.js b/cms/static/js/menu.js index 2f94a28..8f1ef59 100644 --- a/cms/static/js/menu.js +++ b/cms/static/js/menu.js @@ -238,7 +238,7 @@ var QCMSBasic= function(_layout,_context,_clickEvent) { var _make = this._make var _layout = this._layout Object.keys(this._layout.menu).forEach(function(_name){ - var _div = me._make(_layout.menu[_name]) ; + var _div = _me._make(_layout.menu[_name]) ; var _sub = jx.dom.get.instance('DIV') @@ -288,12 +288,13 @@ var QCMSTabs = function(_layout,_context,_clickEvent){ this._layout = _layout this.init = function (){ + var _me = this; var _make = this._make var tabs = this.tabs Object.keys(_layout.menu).forEach(function(_key){ _item = _layout.menu[_key] // console.log([_item]) - _tabItem = _make(_key,_item) + _tabItem = _me._make(_key,_item) $(tabs).append(_tabItem) })