I18n update for dialog box buttons.

https://fedorahosted.org/freeipa/ticket/899
This commit is contained in:
Endi S. Dewata
2011-02-21 18:36:42 -06:00
committed by Adam Young
parent 397da3f781
commit 39a00b496c
8 changed files with 164 additions and 118 deletions

View File

@@ -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);
};