Add jquery.fn.serializeObject
authorOri Livneh <ori@wikimedia.org>
Tue, 2 Dec 2014 19:44:38 +0000 (11:44 -0800)
committerOri Livneh <ori@wikimedia.org>
Tue, 2 Dec 2014 20:38:08 +0000 (12:38 -0800)
commita444c7264d6659c56341abb304a2a3e8190915ed
tree293c18436c331ba6597cd527b8f0eeca60aa3b5c
parentb702cb3b246b2bf1652ed93ac09b343557f361b3
Add jquery.fn.serializeObject

Teeny-tiny jQuery plugin to get form data as an object mapping each form
control's name to its value. I needed this for something and I saw this
pattern already in use in mediawiki.searchSuggest.js, so that's two use-cases.
I thought about calling this 'jquery.formData', but since it's a close analog of
jquery.serializeArray, I think this name is appropriate.

Change-Id: I00b6a7fb75a4d5132e7d6715c8867091a161dbb6
resources/Resources.php
resources/src/jquery/jquery.getAttrs.js
resources/src/mediawiki/mediawiki.searchSuggest.js