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) // $(_label).on('click',_clickEvent)
// return [_button,_label] // 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 // Let us determine what kind of menu is suited for this
// @TODO: Make menus configurable i.e on other areas of the site // @TODO: Make menus configurable i.e on other areas of the site
@ -336,9 +336,9 @@ menu.tabs.init =function (_layout){
}) })
if (_count == _items){ if (_count == _items){
var _menuObject = new QCMSTabs (_layout) var _menuObject = new QCMSTabs (_layout,_context)
}else{ }else{
var _menuObject = new QCMSBasic (_layout) var _menuObject = new QCMSBasic (_layout,_context)
} }
// console.log(_layout) // console.log(_layout)
// var _tabs = new QCMSTabs (_layout) // var _tabs = new QCMSTabs (_layout)

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