From d795687620ab62886c9297a4f3fee8a26af8c510 Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Tue, 3 Sep 2024 17:31:03 -0500 Subject: [PATCH] bug fix: context in menu --- cms/static/js/menu.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) })