mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-01-14 00:47:54 -05:00
25 lines
521 B
JavaScript
Executable File
25 lines
521 B
JavaScript
Executable File
// window.plugins.waitingDialog
|
|
|
|
function WaitingDialog() {
|
|
}
|
|
|
|
WaitingDialog.prototype.show = function(text) {
|
|
cordova.exec(null, null, "WaitingDialog", "show", [text]);
|
|
}
|
|
|
|
WaitingDialog.prototype.hide = function() {
|
|
cordova.exec(null, null, "WaitingDialog", "hide", []);
|
|
}
|
|
|
|
cordova.addConstructor(function() {
|
|
if(!window.plugins) {
|
|
window.plugins = {};
|
|
}
|
|
|
|
// shim to work in 1.5 and 1.6
|
|
if (!window.Cordova) {
|
|
window.Cordova = cordova;
|
|
};
|
|
|
|
window.plugins.waitingDialog = new WaitingDialog();
|
|
}); |