diff options
Diffstat (limited to 'Duplicati/Server/webroot/ngax/scripts/services/DialogService.js')
-rw-r--r-- | Duplicati/Server/webroot/ngax/scripts/services/DialogService.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Duplicati/Server/webroot/ngax/scripts/services/DialogService.js b/Duplicati/Server/webroot/ngax/scripts/services/DialogService.js index 24bc32129..88d270e97 100644 --- a/Duplicati/Server/webroot/ngax/scripts/services/DialogService.js +++ b/Duplicati/Server/webroot/ngax/scripts/services/DialogService.js @@ -51,6 +51,14 @@ backupApp.service('DialogService', function() { }); }; + this.accept = function(message, callback) { + return this.enqueueDialog({ + 'message': message, + 'callback': callback, + 'buttons': ['OK'] + }); + }; + this.dialog = function(title, message, buttons, callback, onshow) { return this.enqueueDialog({ 'message': message, @@ -78,4 +86,10 @@ backupApp.service('DialogService', function() { } }; + this.dismissAll = function() { + while (state.CurrentItem != null){ + this.dismissCurrent(); + } + }; + });
\ No newline at end of file |