Commit graph

14 commits

Author SHA1 Message Date
Fomafix f6cb7dd261 Move comment to the right place
Change-Id: I0b0604edb22abe4fcb11acda86b756adc1fc1677
Follows-up: Ia4a19b363b49ca456efb205c082445da5e6efb47
2015-01-15 19:48:31 +00:00
Fomafix 69fa92ee11 Support for LivePreview
A solution for bug 24134 is still missing.

Change-Id: Ia4a19b363b49ca456efb205c082445da5e6efb47
2014-03-29 10:04:21 +00:00
jenkins-bot 55f53a90f6 Merge "Rework ext.categoryTree.js" 2014-03-29 00:20:43 +00:00
Fomafix ef8a9f0ba5 Use current lang, debug and skin for AJAX call
Load the subtree in the current user interface settings set by the
URL parameters debug, uselang and useskin.

Change-Id: I11c58e62b641c926a9965efb01d776851807e651
2014-02-23 09:39:34 +00:00
Fomafix 9409a256ef Rework ext.categoryTree.js
* Remove unnecessary variable categoryTree
* Escape messages
* Replace deprecated .success() and .error() by .done() and .fail()

Change-Id: I07649b820de096ad81fcaae3812dc41bbc942e8c
2014-02-21 22:33:04 +00:00
Timo Tijhof 1f21d2998a Minor clean up of css/js
* Trim trailing whitespace on lines.
* Remove css that has been commented for 5 years (63e25672).
* Remove comment about $wgCategoryTreeVersion which was
  removed 2 years ago (e77ae54).
* Add missing spaces in CSS and JS.

Change-Id: Icb28293b445880246f2b4273daab2fb21c2638df
2013-10-10 00:52:39 +02:00
Krinkle cbedb517d2 [CategoryTree]
* Fixes:
-- (bug 34880) [CategoryTree] Retry link shouldn't reset page scroll to '#' (and misses a space)
2012-03-02 00:31:33 +00:00
Krinkle 41eeac2a23 [CategoryTree] clean up JS
* 0 is falsy, cover for that case
* Add comments explaining the numbers, these come from PHP constants, via $wgCategoryTreePageCategoryOptions end up in data- attributes
* Follow-up r112849
2012-03-01 23:43:41 +00:00
Krinkle 8e90ba4c6e [CategoryTree] clean up JS, fix undefined bug
* Use dashes versions of data attributes to make it easier to find them (now the data attributes as found in PHP where no where to be found in any JS file, appeared to be bogus)
* Don't create a new <div> element ($parentTag) only to store a single string in it's data object, using local variables for ctTitle, ctMode and ctOptions instead.
2012-03-01 23:04:44 +00:00
Niklas Laxström 0495b4e230 Comment not relevant with resource loader 2012-01-24 11:34:12 +00:00
John Du Hart e1191e314d Followup r98563, improvement to javascript per CR 2011-10-02 19:25:17 +00:00
John Du Hart bac9f6d905 Followup r98563, oops, forgot to use var for Javascript variables. Yikes 2011-09-30 22:13:51 +00:00
John Du Hart 8e3523c626 Followup r98500, conversion of the Javascript to use jQuery fully. It also makes the Javascript work outside of debug=1 (oops)
There's a couple of WTF moments in the code, this is really due to some issues with the PHP side of stuff. It really needs some TLC but for right now it works, I'll come back to it before 1.19 and clean it up.
2011-09-30 21:08:28 +00:00
John Du Hart e77ae5449b Basic ResourceLoader conversion, jQuery conversion and API use will come soon 2011-09-30 02:51:53 +00:00
Renamed from CategoryTree.js (Browse further)