[IMP]Minor Change

bzr revid: vja@tinyerp.com-20121119071142-8z4tyac5t8614dde
This commit is contained in:
Vishmita
2012-11-19 12:41:42 +05:30
parent df369bd8c0
commit e97d0843c3
2 changed files with 5 additions and 3 deletions
+4 -3
View File
@@ -720,12 +720,13 @@ instance.web.ChangePassword = instance.web.Widget.extend({
template: "ChangePassword",
start: function() {
var self = this;
this.getParent().dialog_title = "Change Password";
var $button = self.$el.find('.oe_form_button');
var footer_panel = this.getParent().$buttons.find('footer');
$button.eq(1).appendTo(footer_panel).click(function(){
$button.appendTo(this.getParent().$buttons);
$button.eq(2).click(function(){
self.getParent().close();
})
$button.eq(0).prependTo(footer_panel).click(function(){
$button.eq(0).click(function(){
self.rpc("/web/session/change_password",{
'fields': $("form[name=change_password_form]").serializeArray()
}).done(function(result) {
+1
View File
@@ -335,6 +335,7 @@
<tr>
<td colspan="2" align="right">
<button class='oe_button oe_form_button'>Change Password</button>
<span class="oe_fade oe_form_button"> or </span>
<button type="button" class="oe_button oe_form_button_cancel oe_form_button oe_link" href="javascript:void(0)"><span>Cancel</span></button>
</td>
</tr>