diff options
Diffstat (limited to 'install/ui/dialog.js')
-rw-r--r-- | install/ui/dialog.js | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/install/ui/dialog.js b/install/ui/dialog.js index 406779ef5..cfddd5194 100644 --- a/install/ui/dialog.js +++ b/install/ui/dialog.js @@ -445,14 +445,9 @@ IPA.adder_dialog = function (spec) { }; that.open = function(container) { - that.buttons = { - 'Enroll': function() { - that.execute(); - }, - 'Cancel': function() { - that.close(); - } - }; + + that.buttons[IPA.messages.buttons.enroll] = that.execute; + that.buttons[IPA.messages.buttons.cancel] = that.close; that.dialog_open(container); }; @@ -544,10 +539,9 @@ IPA.deleter_dialog = function (spec) { }; that.open = function(container) { - that.buttons = { - 'Delete': that.execute, - 'Cancel': that.close - }; + + that.buttons[IPA.messages.buttons.remove] = that.execute; + that.buttons[IPA.messages.buttons.cancel] = that.close; that.dialog_open(container); }; |