diff --git a/lib/class/ajax.class.php b/lib/class/ajax.class.php index 730321d9..2a0dabd2 100644 --- a/lib/class/ajax.class.php +++ b/lib/class/ajax.class.php @@ -58,11 +58,6 @@ class Ajax { $source_txt = "'#$source'"; } - // If it's a post then we need to stop events - if ($post) { - $action = 'Event.stop(e); ' . $action; - } - $observe = ""; diff --git a/lib/javascript/ajax.js b/lib/javascript/ajax.js index 536eb5b5..90b68d86 100644 --- a/lib/javascript/ajax.js +++ b/lib/javascript/ajax.js @@ -26,7 +26,8 @@ $(document).ajaxComplete(function () { // ajaxPost // Post the contents of a form. function ajaxPost(url, input, source) { - $.ajax(url, { success: processContents, type: 'post', data: input }); + //$('#' + input) + $.ajax(url, { success: processContents, type: 'post', data: $('#'+input).serialize() }); } // ajaxPost // ajaxPut