X-Git-Url: https://git.mdrn.pl/wl-mobile.git/blobdiff_plain/bff5852b5ee1320a6eaf4256570784bbc024496f..b9acd6c8b2300a76624900cd19f9e40e59ff3f7b:/assets/www/js/menuinterface.js diff --git a/assets/www/js/menuinterface.js b/assets/www/js/menuinterface.js deleted file mode 100644 index 596f859..0000000 --- a/assets/www/js/menuinterface.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * 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 - */ -var MenuInterface = { - /** - * @param asset Path to the asset (relative to assets dir) - * @param target Path to DB file (relative to app db files dir) - * @param overwrite - * @param win Success callback - * @param fail Error callback - */ - setInfoButton: function(label, enabled, win, fail) { - if (enabled == false) enabled = "false"; - else enabled = "true"; - return PhoneGap.exec( - win, - fail, - "MenuInterface", - "setInfoButton", - [label, enabled] - ); - }, - setNightMode: function(enabled, win, fail) { - if (enabled == false) enabled = "false"; - else enabled = "true"; - return PhoneGap.exec( - win, - fail, - "MenuInterface", - "setNightMode", - [enabled] - ); - }, -}; -