(bug 35082) addPortletLink incorrectly adds to mutiple <ul> tags
authorTimo Tijhof <ttijhof@wikimedia.org>
Thu, 7 Jun 2012 21:06:49 +0000 (23:06 +0200)
committerTimo Tijhof <ttijhof@wikimedia.org>
Mon, 2 Jul 2012 20:19:29 +0000 (22:19 +0200)
commitd737603d2aa81509a930adf5fb06ae861077fca6
tree4915742c0cc3f1f62bff852f983fa05004056f69
parent5583d10bdc29ee07aa5b5c62af2fb53b49846ae7
(bug 35082) addPortletLink incorrectly adds to mutiple <ul> tags

* cleaned up tags <ul> creation (no need to create it and then
  find() it. Might as well grab a hold of it before insertion).

* Fixed bug by adding ".eq( 0 )"

* Added unit test for it
  (which fails without the fix in mediawiki.util.js)

Change-Id: I51e9053292f03c1b833db0df2fb1b40f1eaf8b1a
RELEASE-NOTES-1.20
resources/mediawiki/mediawiki.util.js
tests/qunit/suites/resources/mediawiki/mediawiki.util.test.js