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