From 39a00b496c57b1617fff9564dd78529b0486216a Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Mon, 21 Feb 2011 18:36:42 -0600 Subject: I18n update for dialog box buttons. https://fedorahosted.org/freeipa/ticket/899 --- install/ui/dialog.js | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'install/ui/dialog.js') diff --git a/install/ui/dialog.js b/install/ui/dialog.js index 406779ef..cfddd519 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); }; -- cgit