fix sync status display
This commit is contained in:
parent
a07e6b59a3
commit
94a5cf7549
26 changed files with 415 additions and 276 deletions
17
dashboard-ui/cordova/prompt.js
vendored
Normal file
17
dashboard-ui/cordova/prompt.js
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
define([], function () {
|
||||
return function (options) {
|
||||
|
||||
var callback = function (result) {
|
||||
|
||||
if (result.buttonIndex == 1) {
|
||||
options.callback(result.input1);
|
||||
} else {
|
||||
options.callback(null);
|
||||
}
|
||||
};
|
||||
|
||||
var buttonLabels = [Globalize.translate('ButtonOk'), Globalize.translate('ButtonCancel')];
|
||||
|
||||
navigator.notification.prompt(options.text, callback, options.title, buttonLabels, options.defaultText || '');
|
||||
};
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue