mediawiki.htmlform: Fix broken $() call
authorBrad Jorsch <bjorsch@wikimedia.org>
Tue, 8 Jul 2014 19:15:49 +0000 (15:15 -0400)
committerTimo Tijhof <krinklemail@gmail.com>
Fri, 18 Jul 2014 02:23:27 +0000 (04:23 +0200)
commit7ae768c9899f7fd681c34d2c3cff33d2e882b8e0
tree1720c848d231895d44b3a54b2f752721d4931830
parenta0864e85a202539a6bf3cc58336a1942edd4c6d0
mediawiki.htmlform: Fix broken $() call

Follows-up c310e7b40cdaa92bb06e.

The $( Array ) signature requires the list to contain DOM nodes,
not jQuery objects. The fields variable should be a list of
nodes, not jQuery collections.

Also:
* Improve @return documentation for hideIfParse().
* Flag hideIfParse() and hideIfGetField() as private to remove them
  from the jQuery#htmlform API documentation as methods that would
  be mixed into the jQuery prototype (they're not).

Bug: 67685
Change-Id: I4bb93ad234cdd4a1f412b759065138e2831be2a6
resources/src/mediawiki/mediawiki.htmlform.js