File Editor
Directories:
.. (Back)
ui
Files:
jquery-migrate.js
jquery-migrate.min.js
jquery.color.min.js
jquery.form.js
jquery.form.min.js
jquery.hotkeys.js
jquery.hotkeys.min.js
jquery.js
jquery.masonry.min.js
jquery.min.js
jquery.query.js
jquery.schedule.js
jquery.serialize-object.js
jquery.table-hotkeys.js
jquery.table-hotkeys.min.js
jquery.ui.touch-punch.js
suggest.js
suggest.min.js
Create New File
Create
Edit File: jquery.serialize-object.js
/*! * jQuery serializeObject - v0.2-wp - 1/20/2010 * http://benalman.com/projects/jquery-misc-plugins/ * * Copyright (c) 2010 "Cowboy" Ben Alman * Dual licensed under the MIT and GPL licenses. * http://benalman.com/about/license/ */ // Whereas .serializeArray() serializes a form into an array, .serializeObject() // serializes a form into an (arguably more useful) object. (function($,undefined){ '$:nomunge'; // Used by YUI compressor. $.fn.serializeObject = function(){ var obj = {}; $.each( this.serializeArray(), function(i,o){ var n = o.name, v = o.value; obj[n] = obj[n] === undefined ? v : Array.isArray( obj[n] ) ? obj[n].concat( v ) : [ obj[n], v ]; }); return obj; }; })(jQuery);
Save Changes
Rename File
Rename