diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-02-21 18:36:42 -0600 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2011-02-22 13:26:09 -0500 |
commit | 39a00b496c57b1617fff9564dd78529b0486216a (patch) | |
tree | ebd82a6c683747073069ed6701b763c794792957 /install/ui/dialog.js | |
parent | 397da3f78192cc8eafdf6d36d0ac1f3303bfaaa4 (diff) | |
download | freeipa-39a00b496c57b1617fff9564dd78529b0486216a.tar.gz freeipa-39a00b496c57b1617fff9564dd78529b0486216a.tar.xz freeipa-39a00b496c57b1617fff9564dd78529b0486216a.zip |
I18n update for dialog box buttons.
https://fedorahosted.org/freeipa/ticket/899
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); }; |