Commit graph

12 commits

Author SHA1 Message Date
Jack Phoenix 871a745741 Stylizing the JS file
s/four spaces/one tab/ and s/double quotes/single quotes/ + some
MediaWiki-esque spacing tweaks

Should pass JSHint checks now that double quotes are gone

Change-Id: Ifdf07faf8f1c2e817ce515a4ffed3e7c9699d1af
2015-02-20 00:11:52 +02:00
TakahashiNZ 96a783e8fc JSLint compliance
slight modifications to pass jslint checking

Bug: T86573

Change-Id: Ic2e36a13a308637de3063cef4d27129179980eff
2015-02-17 20:05:42 +00:00
TakahashiNZ 4402933325 updated AJAXPoll to work with MW 1.24
replaced .live() calls with .on()

wrapped all handlers in a function so they can be reapplied after the page is updated via the ajax call.

replaced sajax_do_call() that was generating a bunch of deprecation errors. I replaced it with the method outlined here:

https://www.mediawiki.org/wiki/ResourceLoader/Legacy_JavaScript

Bug: T86573

Change-Id: I44538be1a8e42bd53a2107e3724686ae184599e3
2015-02-17 15:28:47 +00:00
Jack Phoenix 18cee955f9 Remove use of jQuery .live()
jQuery's .live was deprecated in jQuery 1.7 and removed in 1.9, so don't
use it here as it'll just generate TypeErrors under MediaWiki 1.24.

Change-Id: I703ea427e00fdea957788c8d29892ebb6fe3fffa
2014-12-08 14:52:34 +00:00
Wikinaut d5804f1134 localizing submit message text in javascript using resource loader
follow-up patch to https://gerrit.wikimedia.org/r/#/c/67037/

bug 49162

Change-Id: I586646d6101e0f71dab2e60ed9ee08966fbd428a
2013-06-05 02:40:16 +02:00
Wikinaut ad55b3419a localizing submit message text in javascript using resource loader
bug 49162

Change-Id: I528344369341d8c43f196b5d52fd47ae6012521e
2013-06-05 02:24:18 +02:00
Wikinaut 9d3e41b3a3 (bug 48613) fixes a CSRF vulnerability; bump to version 1.80
depends on https://gerrit.wikimedia.org/r/#/c/21986/10

Change-Id: Ib63fde498e1731502530c752b5387e642998d0b2
2013-05-26 10:47:40 +02:00
Thomas Gries 7071ff5967 restricting the clickable area and colour when hovering, and pointer cursor, to really only the label tag area 2012-03-18 08:08:35 +00:00
Thomas Gries 11654ce306 improved marking of the vote (less is marked); hex colour codes instead of web colour names. 2012-03-18 07:15:30 +00:00
Thomas Gries bc93f4845b best version ever: fully jqueryfied. repaired non-ajax mode for wikis with wgUseAjax false 2012-03-17 21:13:10 +00:00
Thomas Gries ad70debaac css change . highlighting only the smaller label element looks better and not so alerting 2012-03-13 22:48:18 +00:00
Thomas Gries 2ff68e3efe follow up r113554 . fixing a regression which was introduced in r113554. Making now all all ids unique even when you have several polls on a mw page. using, new, the resourceloader to load common methods. just a little bit ... more of jquery. fixing a forgotten wgParser to parser variable problem. introducing and moving js and css to resources. 2012-03-13 22:31:46 +00:00