bug fix: context in menu

pull/10/head
Steve Nyemba 3 months ago
parent 54010cbbf3
commit d795687620

@ -238,7 +238,7 @@ var QCMSBasic= function(_layout,_context,_clickEvent) {
var _make = this._make var _make = this._make
var _layout = this._layout var _layout = this._layout
Object.keys(this._layout.menu).forEach(function(_name){ 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') var _sub = jx.dom.get.instance('DIV')
@ -288,12 +288,13 @@ var QCMSTabs = function(_layout,_context,_clickEvent){
this._layout = _layout this._layout = _layout
this.init = function (){ this.init = function (){
var _me = this;
var _make = this._make var _make = this._make
var tabs = this.tabs var tabs = this.tabs
Object.keys(_layout.menu).forEach(function(_key){ Object.keys(_layout.menu).forEach(function(_key){
_item = _layout.menu[_key] _item = _layout.menu[_key]
// console.log([_item]) // console.log([_item])
_tabItem = _make(_key,_item) _tabItem = _me._make(_key,_item)
$(tabs).append(_tabItem) $(tabs).append(_tabItem)
}) })

Loading…
Cancel
Save