X-Git-Url: https://git.mdrn.pl/wl-mobile.git/blobdiff_plain/065d23f9494e1afb7f61ada08b728405b1b7a0cf..e02aa48b6f2b7ddca9b55c56288cd2512702da6d:/assets/www/js/menuinterface.js diff --git a/assets/www/js/menuinterface.js b/assets/www/js/menuinterface.js index aa8df52..596f859 100644 --- a/assets/www/js/menuinterface.js +++ b/assets/www/js/menuinterface.js @@ -1,3 +1,8 @@ +/* + * This file is part of WolneLektury-Mobile, licensed under GNU Affero GPLv3 or later. + * Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. + */ + /** * * @return Object literal singleton instance of MenuInterface @@ -21,5 +26,16 @@ var MenuInterface = { [label, enabled] ); }, + setNightMode: function(enabled, win, fail) { + if (enabled == false) enabled = "false"; + else enabled = "true"; + return PhoneGap.exec( + win, + fail, + "MenuInterface", + "setNightMode", + [enabled] + ); + }, };