[IMP] Sidebar buttons width has changed. Added focus on input.

bzr revid: fme@openerp.com-20101027134139-kfxis1s86f6k53tl
This commit is contained in:
Fabien Meghazi 2010-10-27 15:41:39 +02:00
parent a91878d868
commit e42eeba3e2
1 changed files with 2 additions and 1 deletions

View File

@ -14,7 +14,7 @@ class SidebarTemplateEditor(openobject.templating.TemplateEditor):
output.index(self.ADD_ATTACHMENT_BUTTON)) + 1
output = output[:form_opener_insertion] + \
'''<a href="#" id="add-pad" class="button-a"
style="right: 44px;"
style="right: 36px;"
>${_("Pad")}</a>\n''' + \
output[form_opener_insertion:]
return output
@ -39,6 +39,7 @@ class SidebarTemplateEditor(openobject.templating.TemplateEditor):
.submit(createAttachment);
jQuery('#add-pad').click(function(e){
$padForm.show();
jQuery('#sidebar_pad_datas').focus();
e.preventDefault();
});
});