From b0d2834fce84d4daea3e7e6da032fded540452f2 Mon Sep 17 00:00:00 2001 From: Matt Moriarity Date: Sat, 28 Jul 2007 23:03:37 -0400 Subject: [PATCH] Fixed a bug in DeleteLink in Firefox Seems in Safari you can submit a form that has not been added to the DOM. Not so in Firefox. --- public/javascripts/application.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/javascripts/application.js b/public/javascripts/application.js index 6e816b1..b4087fd 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -69,6 +69,8 @@ Lyrix.DeleteLink = Behavior.create({ name: '_method', value: 'delete' })); + + this.element.appendChild(this.form); }, onclick: function(e) { this.form.submit(); -- 2.11.4.GIT