Przeglądaj źródła

function use before definition is still working .. happy mode.

master
Patrick Sun 5 lat temu
rodzic
commit
4beb072fdb
1 zmienionych plików z 7 dodań i 7 usunięć
  1. +7
    -7
      front-end/js/common.js

+ 7
- 7
front-end/js/common.js Wyświetl plik

function toggle_sidemenu(){
if( $$("menu").config.hidden){
$$("menu").show();
}
else
$$("menu").hide();
}


var top_toolbar = { var top_toolbar = {
"view": "toolbar", "id": "header", "css": "webix_dark", "padding": { "right": 10, "left": 10 }, "view": "toolbar", "id": "header", "css": "webix_dark", "padding": { "right": 10, "left": 10 },
] ]
}; };


function toggle_sidemenu(){
if( $$("menu").config.hidden){
$$("menu").show();
}
else
$$("menu").hide();
}
function initTopMenu(layout, view){ function initTopMenu(layout, view){
if ($$(layout) && $$(view)) if ($$(layout) && $$(view))
webix.ui(top_toolbar, $$(layout), $$(view)); webix.ui(top_toolbar, $$(layout), $$(view));

Ładowanie…
Anuluj
Zapisz