bug fix: menu & application context

pull/10/head
Steve Nyemba 3 months ago
parent d5a6dbb713
commit a54ad94d15

@ -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)

@ -13,5 +13,5 @@
{% endif %}
<script>
menu.tabs.init({{layout|tojson}})
menu.tabs.init({{layout|tojson}},{{system.context}})
</script>
Loading…
Cancel
Save