summaryrefslogtreecommitdiffstats
path: root/install/ui/policy.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-02-21 18:36:42 -0600
committerAdam Young <ayoung@redhat.com>2011-02-22 13:26:09 -0500
commit39a00b496c57b1617fff9564dd78529b0486216a (patch)
treeebd82a6c683747073069ed6701b763c794792957 /install/ui/policy.js
parent397da3f78192cc8eafdf6d36d0ac1f3303bfaaa4 (diff)
downloadfreeipa-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/policy.js')
-rw-r--r--install/ui/policy.js21
1 files changed, 12 insertions, 9 deletions
diff --git a/install/ui/policy.js b/install/ui/policy.js
index 9b8115f8c..c26dfc5c5 100644
--- a/install/ui/policy.js
+++ b/install/ui/policy.js
@@ -174,14 +174,15 @@ IPA.records_facet = function (spec){
add_dialog.dialog('close');
}
+ var buttons = {};
+
+ buttons[IPA.messages.buttons.add_many] = add;
+ buttons[IPA.messages.buttons.add_and_close] = add_and_close;
+ buttons[IPA.messages.buttons.cancel] = cancel;
add_dialog.dialog({
modal: true,
- buttons: {
- 'Add many': add,
- 'Add and Close': add_and_close,
- 'Cancel': cancel
- }
+ buttons: buttons
});
}
@@ -256,12 +257,14 @@ IPA.records_facet = function (spec){
delete_dialog.append($('<P/>',
{text: IPA.messages.search.delete_confirm}));
+ var buttons = {};
+
+ buttons[IPA.messages.buttons.remove] = delete_on_click;
+ buttons[IPA.messages.buttons.cancel] = cancel_on_click;
+
delete_dialog.dialog({
modal: true,
- buttons: {
- 'Delete': delete_on_click,
- 'Cancel': cancel_on_click
- }
+ buttons: buttons
});