From 6749ffb0fa34f0b07a35cf79c63bde6394152568 Mon Sep 17 00:00:00 2001 From: ali asaria Date: Sat, 12 Mar 2011 12:11:26 -0500 Subject: [PATCH] this hack prevents http submit of forms when editing-in-place i do this by replacing the
element with a
so the form no longer has default behaviours that need to be overridden by jquery. --- client/lib/jquery.jeditable.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/client/lib/jquery.jeditable.js b/client/lib/jquery.jeditable.js index 2d19b5a..2fe9537 100644 --- a/client/lib/jquery.jeditable.js +++ b/client/lib/jquery.jeditable.js @@ -177,7 +177,13 @@ $(self).html(''); /* create the form object */ - var form = $(''); + /* ######################### + ################### + ################## + Big HACK by ali: i make the form a div so that it no longer has default + submit behaviours -- because we don't want HTTP submissions to happen */ + //var form = $(''); + var form = $('
'); /* apply css or style or both */ if (settings.cssclass) {