[MERGE] preference change password fixe

bzr revid: al@openerp.com-20120811195354-sayk1u53wy42vqc1
This commit is contained in:
Antony Lesuisse 2012-08-11 21:53:54 +02:00
commit e1bc12fb27
2 changed files with 7 additions and 7 deletions

View File

@ -665,7 +665,7 @@ instance.web.ChangePassword = instance.web.Widget.extend({
template: "ChangePassword",
start: function() {
var self = this;
self.$element.find("form[name=change_password_form]").validate({
self.$element.validate({
submitHandler: function (form) {
self.rpc("/web/session/change_password",{
'fields': $(form).serializeArray()
@ -685,7 +685,7 @@ instance.web.ChangePassword = instance.web.Widget.extend({
modal: true,
title: error.title,
buttons: [
{text: _("Ok"), click: function() { $(this).dialog("close"); }}
{text: _t("Ok"), click: function() { $(this).dialog("close"); }}
]
}).html(error.error);
},

View File

@ -282,7 +282,7 @@
<tr>
<td><label for="new_password">New Password:</label></td>
<td><input type="password" name="new_password"
minlength="1" autofocus="autofocus"/></td>
minlength="1"/></td>
</tr>
<tr>
<td><label for="confirm_pwd">Confirm Password:</label></td>