pretty much working version
[wl-mobile.git] / assets / www / js / menuinterface.js
1 /**
2  *  
3  * @return Object literal singleton instance of MenuInterface
4  */
5 var MenuInterface = { 
6         /**
7      * @param asset Path to the asset (relative to assets dir)
8      * @param target Path to DB file (relative to app db files dir)
9      * @param overwrite
10      * @param win Success callback
11      * @param fail Error callback
12      */
13         setInfoButton: function(label, enabled, win, fail) {
14                 if (enabled == false) enabled = "false";
15                 else enabled = "true";
16                 return PhoneGap.exec(
17                         win, 
18                         fail, 
19                         "MenuInterface", 
20                         "setInfoButton", 
21                         [label, enabled]
22                 );
23         },
24 };
25