X-Git-Url: https://git.mdrn.pl/wl-mobile.git/blobdiff_plain/34bb7f2c593c073ff871ed732bf16e298abe6837..e02aa48b6f2b7ddca9b55c56288cd2512702da6d:/assets/www/js/menu.js?ds=sidebyside diff --git a/assets/www/js/menu.js b/assets/www/js/menu.js index 2f9400b..9fea371 100644 --- a/assets/www/js/menu.js +++ b/assets/www/js/menu.js @@ -7,6 +7,10 @@ var Menu = new function() { var self = this; var infoView = "ProjectInfo"; + self.init = function() { + window.MenuInterface.setNightMode(View.getNightMode()); + }; + self.start = function() { History.visit(''); }; @@ -21,6 +25,11 @@ var Menu = new function() { History.addBookmark(name); }; + self.toggleNightMode = function() { + View.toggleNightMode(); + window.MenuInterface.setNightMode(View.getNightMode()); + }; + self.setInfoButton = function(view, label, enabled) { self.infoView = view; window.MenuInterface.setInfoButton(label, enabled);