Commit 329d1a3b authored by Gilles van den Hoven's avatar Gilles van den Hoven

forgot to remove the old serialize function

parent 6e4f0ce0
...@@ -90,22 +90,6 @@ $.postXML = function( url, data, ret ) { ...@@ -90,22 +90,6 @@ $.postXML = function( url, data, ret ) {
$.post( url, data, ret, "xml" ); $.post( url, data, ret, "xml" );
}; };
// Dynamic Form Submission
// Based upon the mailing list post at:
// http://jquery.com/discuss/2006-March/000424/
$.fn.serialize = function(callback) {
return this.each(function(){
var a = {};
$(this)
.find("input:checked,hidden,text,option[@selected],textarea")
.filter(":enabled").each(function() {
a[ this.name || this.id || this.parentNode.name || this.parentNode.id ] = this.value;
});
$.xml( this.method || "GET", this.action || "", $.param(a), callback );
});
};
$.param = function(a) { $.param = function(a) {
var s = []; var s = [];
if (a && typeof a == 'object' && a.constructor == Array) { if (a && typeof a == 'object' && a.constructor == Array) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment