From a54ad94d15abd0e9bb5be93c601f5d7fd40f0d6e Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Tue, 3 Sep 2024 17:11:01 -0500 Subject: [PATCH] bug fix: menu & application context --- cms/static/js/menu.js | 6 +++--- cms/templates/menu.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cms/static/js/menu.js b/cms/static/js/menu.js index 5a90b67..09bca25 100644 --- a/cms/static/js/menu.js +++ b/cms/static/js/menu.js @@ -323,7 +323,7 @@ menu.tabs = { } // $(_label).on('click',_clickEvent) // return [_button,_label] // } -menu.tabs.init =function (_layout){ +menu.tabs.init =function (_layout,_context){ // // Let us determine what kind of menu is suited for this // @TODO: Make menus configurable i.e on other areas of the site @@ -336,9 +336,9 @@ menu.tabs.init =function (_layout){ }) if (_count == _items){ - var _menuObject = new QCMSTabs (_layout) + var _menuObject = new QCMSTabs (_layout,_context) }else{ - var _menuObject = new QCMSBasic (_layout) + var _menuObject = new QCMSBasic (_layout,_context) } // console.log(_layout) // var _tabs = new QCMSTabs (_layout) diff --git a/cms/templates/menu.html b/cms/templates/menu.html index 74ef8e0..88cdba9 100644 --- a/cms/templates/menu.html +++ b/cms/templates/menu.html @@ -13,5 +13,5 @@ {% endif %} \ No newline at end of file