this hack prevents http submit of forms when editing-in-place

i do this by replacing the <form> element with a <div> so the form no longer has default behaviours that need to be overridden by jquery.
This commit is contained in:
ali asaria 2011-03-12 12:11:26 -05:00
parent ae247f09bf
commit 6749ffb0fa

View file

@ -177,7 +177,13 @@
$(self).html(''); $(self).html('');
/* create the form object */ /* create the form object */
var form = $('<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 = $('<form />');
var form = $('<div />');
/* apply css or style or both */ /* apply css or style or both */
if (settings.cssclass) { if (settings.cssclass) {