summaryrefslogtreecommitdiffstats
path: root/install/ui/user.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/user.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/user.js')
-rw-r--r--install/ui/user.js34
1 files changed, 19 insertions, 15 deletions
diff --git a/install/ui/user.js b/install/ui/user.js
index 66a1b8d15..7a5bf6781 100644
--- a/install/ui/user.js
+++ b/install/ui/user.js
@@ -208,23 +208,27 @@ IPA.user_password_widget = function(spec) {
'<dd class="first"><input id="password_2" type="password"/></dd>'+
'</dl></div>');
+ var buttons = {};
+
+ buttons[IPA.messages.objects.user.reset_password] = function() {
+ var p1 = $("#password_1").val();
+ var p2 = $("#password_2").val();
+ if (p1 != p2) {
+ alert(IPA.messages.objects.user.password_must_match);
+ return;
+ }
+ reset_password(p1);
+ };
+
+ buttons[IPA.messages.buttons.cancel] = function() {
+ dialog.dialog('close');
+ };
+
dialog.dialog({
modal: true,
- minWidth:400,
- buttons: {
- 'Reset Password': function(){
- var p1 = $("#password_1").val();
- var p2 = $("#password_2").val();
- if (p1 != p2){
- alert(IPA.messages.objects.user.password_must_match);
- return;
- }
- reset_password(p1);
- },
- 'Cancel':function(){
- dialog.dialog('close');
- }
- }
+ title: IPA.messages.objects.user.reset_password,
+ minWidth: 400,
+ buttons: buttons
});
return false;