Commit graph

10 commits

Author SHA1 Message Date
Brion Vibber
b36d8ace6d Followup r104671: fix regression in jquery.delayedBind() due to change in param processing for jquery's bind()
Problem was per CR comment https://www.mediawiki.org/wiki/Special:Code/MediaWiki/104671#c26836 -- parameter count check changed in upstream jquery.bind(), causing the way we passed params to break if the optional 'data' parameter was left out.

Added QUnit test cases for jquery.delayedBind() with and without the optional 'data' parameter.
Undoes r104671 since the issue it was working around is fixed.
2011-12-02 21:47:46 +00:00
Roan Kattouw
0c51642cfd (bug 31212) History tab not collapsed when the screen is narrow. Patch by Michael M 2011-11-30 13:16:18 +00:00
Krinkle
0e82a6cfd0 Applying whitespace conventions in core JS files.
* Mostly whitespace in callers: $('foo').bar(baz,quux) => $( 'foo' ).bar( baz, quux )
* Also several occurrences of mixes spaces and tabs in the indention in front of a line, converted to tabs.
* And double spaces -> single spaces at random.
2011-08-12 21:48:10 +00:00
Roan Kattouw
5a121eb723 Followup r86625: per CR, use loose comparison against null instead of typeof foo != 'undefined' because jQuery 1.4 (which MW uses) actually returns null for unset .data() keys, but 1.5 returns undefined. 2011-04-25 10:17:30 +00:00
Roan Kattouw
bedecf2240 (bug 27833) CollapsibleTabs doesn't collapse tabs due to JS errors
* Change remove() to detach() so .data() isn't lost
* Be more careful using the parent's .data() in addData()
* Change ele (which mysteriously isn't available in the closure) to this, they're the same anyway
2011-04-21 14:39:45 +00:00
Sam Reed
bfb6c23266 (bug 26265) Many semicolons are missing from JavaScript files
And some more unterminated statements..
2010-12-06 22:34:15 +00:00
Trevor Parscal
86ba49df42 Resolves issue in r73046 where a jQuery plugin assumed $; wrapped it in a closure to solve this. 2010-10-01 18:05:55 +00:00
Trevor Parscal
92d8037bb9 Added collapsible tabs plugin, reworked tabIndex functions, and fixed some syntax errors. 2010-09-15 02:03:24 +00:00
Trevor Parscal
6a33ab3514 Added registrations for modules that were present but not registered. Also removed 2 scripts; jquery.browser is being replaced by mediWiki.util.client, and jquery.collapsibleTabs belongs to the Vector/CollapsibleTabs extension. 2010-09-09 20:31:19 +00:00
Roan Kattouw
32377424b9 Merging resourceloader branch into trunk. Full documentation is at http://www.mediawiki.org/wiki/ResourceLoader and a general overview has been posted on wikitech-li <http://lists.wikimedia.org/pipermail/wikitech-l/2010-September/049253.html>. One important change is that all JS is now loaded at the bottom, so any scripts assuming things from wikibits or whatever are present will fail. 2010-09-04 04:00:09 +00:00