X-Git-Url: https://git.mdrn.pl/wl-mobile.git/blobdiff_plain/8b7b42d45674861437a31e9f9125a277ce998721..065d23f9494e1afb7f61ada08b728405b1b7a0cf:/assets/www/js/menuinterface.js diff --git a/assets/www/js/menuinterface.js b/assets/www/js/menuinterface.js new file mode 100644 index 0000000..aa8df52 --- /dev/null +++ b/assets/www/js/menuinterface.js @@ -0,0 +1,25 @@ +/** + * + * @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] + ); + }, +}; +