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):
@@ -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();