diff options
| author | Fabien Meghazi <fme@openerp.com> | 2010-10-27 15:41:39 +0200 |
|---|---|---|
| committer | Fabien Meghazi <fme@openerp.com> | 2010-10-27 15:41:39 +0200 |
| commit | e42eeba3e2374cf4e089dd2015cad20928a7bc0a (patch) | |
| tree | 1cd0a3349e2079b8a9d010aede5ed230960de107 | |
| parent | a91878d868070be7f707c86de524b9283c86c61b (diff) | |
[IMP] Sidebar buttons width has changed. Added focus on input.
bzr revid: fme@openerp.com-20101027134139-kfxis1s86f6k53tl
| -rw-r--r-- | addons/pad/web/editors.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/pad/web/editors.py b/addons/pad/web/editors.py index 62ff426a623..ef24cbfbc12 100644 --- a/addons/pad/web/editors.py +++ b/addons/pad/web/editors.py @@ -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(); }); }); |
