Edit File by line
/home/barbar84/public_h.../wp-inclu.../js/jquery
File: jquery.serialize-object.js
/*!
[0] Fix | Delete
* jQuery serializeObject - v0.2-wp - 1/20/2010
[1] Fix | Delete
* http://benalman.com/projects/jquery-misc-plugins/
[2] Fix | Delete
*
[3] Fix | Delete
* Copyright (c) 2010 "Cowboy" Ben Alman
[4] Fix | Delete
* Dual licensed under the MIT and GPL licenses.
[5] Fix | Delete
* http://benalman.com/about/license/
[6] Fix | Delete
*/
[7] Fix | Delete
[8] Fix | Delete
// Whereas .serializeArray() serializes a form into an array, .serializeObject()
[9] Fix | Delete
// serializes a form into an (arguably more useful) object.
[10] Fix | Delete
[11] Fix | Delete
(function($,undefined){
[12] Fix | Delete
'$:nomunge'; // Used by YUI compressor.
[13] Fix | Delete
[14] Fix | Delete
$.fn.serializeObject = function(){
[15] Fix | Delete
var obj = {};
[16] Fix | Delete
[17] Fix | Delete
$.each( this.serializeArray(), function(i,o){
[18] Fix | Delete
var n = o.name,
[19] Fix | Delete
v = o.value;
[20] Fix | Delete
[21] Fix | Delete
obj[n] = obj[n] === undefined ? v
[22] Fix | Delete
: Array.isArray( obj[n] ) ? obj[n].concat( v )
[23] Fix | Delete
: [ obj[n], v ];
[24] Fix | Delete
});
[25] Fix | Delete
[26] Fix | Delete
return obj;
[27] Fix | Delete
};
[28] Fix | Delete
[29] Fix | Delete
})(jQuery);
[30] Fix | Delete
[31] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function