From 91fc2a2c3c004e8f10b36d0dafb255e260c45d12 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Wed, 20 Oct 2010 14:47:32 +0200 Subject: [PATCH] [IMP] use button element in pad-creation form, avoids need for a bunch of JS to transform a link-click into a form submission Also remove a bunch of unneeded attributes on the pad-name input bzr revid: xmo@openerp.com-20101020124732-2dovbi82ht7hyiyi --- addons/piratepad/editors.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/addons/piratepad/editors.py b/addons/piratepad/editors.py index 39df35f5ecf..dd3623f464c 100644 --- a/addons/piratepad/editors.py +++ b/addons/piratepad/editors.py @@ -29,11 +29,11 @@ class SidebarTemplateEditor(openobject.templating.TemplateEditor):
- + - ${_("Ok")} +
@@ -43,9 +43,6 @@ class SidebarTemplateEditor(openobject.templating.TemplateEditor): var $padForm = jQuery('#pad-form') .hide() .submit(createAttachment); - jQuery('#sidebar_pad_ok').click(function(){ - $padForm.submit(); - }); jQuery('#add-pad').click(function(e){ $padForm.show(); e.preventDefault();