Commit graph

8 commits

Author SHA1 Message Date
Alexander Yakovlev d903805e69 Update code for MW 1.40 2023-08-06 11:24:45 +06:00
Alexander Yakovlev 26a1a64270 WIP new caches 2023-08-06 10:30:55 +06:00
Southparkfan f5596b4217 Optimize amount of SQL queries for Special:TopRatings
Put the SUM(vote_value) directly in a column, instead of executing separate
queries.

Change-Id: I9fbf6b836a6e149e1cd5b16567306997a18446ed
2016-11-14 11:08:26 -05:00
Jack Phoenix 33f5015197 Version 2.7: various JS fixes and stuff
* CSS and JS are now separate RL modules
* JS rewritten to use jQuery instead of sajax
* Fixed a scoping bug from the previous patchset
* Fixed other scoping bugs so that you can revoke your vote w/o reloading the page, no matter what
* JS module is not loaded for users w/o the 'voteny' user right
* JS is not loaded on Special:TopRatings anymore, it was only loaded there ever back when this extension had inline JS to prevent over 9000 JS errors, plus it wouldn't have worked because wgArticleId is 0 for special pages
* Special page alias file added

Change-Id: I6668238a0ab6272b0a7b3b167832ebb2d3abe2c2
2015-05-14 00:00:34 +03:00
Jack Phoenix 7678ee7c4b Ran stylize.php, manually fixed documentation, etc.
Change-Id: I8e684d00bf5142eff70d45d64e4c29cfc380749d
2014-09-21 20:00:51 +03:00
Jack Phoenix 89abe6bffb Modernization
Change-Id: Ie8dce7c0dc3feb16ac5311d1e3fb88ce5933363a
2014-09-21 19:54:41 +03:00
Jack Phoenix a3c82a518b VoteNY: actually make this work under 1.18+, not just in ResourceLoader's debug mode.
Changelist:
*removed backwards-compatibility code
*used HTML5 data attributes to store various information that we access in the JS file
*incremented the extension's version number
*removed ancient vote key stuff (the "vote key" was being passed to the AJAX function but it wasn't used in any of the functions)
*updated Linker class, that class is now static
*killd $wgTitle

Some things are now a bit slower, i.e. if you click on the green voting box, then click again when the unvote link appears, it doesn't seem to change back to "vote" again...but at least it should work now.
2012-01-04 19:51:44 +00:00
Jack Phoenix ae507a6ca3 phase II social tools: VoteNY. Tested and built against MW 1.16.0. Can be used without the core social tools package (SocialProfile extension). 2011-09-14 15:26:09 +00:00