pretty much working version
[wl-mobile.git] / assets / www / js / menuinterface.js
diff --git a/assets/www/js/menuinterface.js b/assets/www/js/menuinterface.js
new file mode 100644 (file)
index 0000000..aa8df52
--- /dev/null
@@ -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]
+               );
+       },
+};
+