Commit graph

17 commits

Author SHA1 Message Date
MarcoAurelio e8777a4700 build: Migrate jshint to eslint
Change-Id: I03c60164a042c87d3801188183ab4841b8a26045
2018-09-17 08:29:54 +00:00
Jack Phoenix 0469665d77 Version 2.0: somewhat more properly convert the AJAX function into an API module to ensure continued post-1.30 compatibility
MW 1.30.0+ is now explicitly required; as such, dropped pre-1.17 support
from AJAXPoll#onLoadExtensionSchemaUpdates.

Also "fixed" T163625 by changing an INSERT INTO query into INSERT IGNORE
INTO, swapped some "double quotes" to 'single quotes', refactored some
stuff, etc.

Bug: T163625
Change-Id: Ifbabf3bf5da25c602fe5873539520c517573890c
2018-05-12 15:50:02 +03:00
SamanthaNguyen 4c4348557c Reorganize directory structure + file renaming
Bug: T160849
Change-Id: I4c7ec4d2c5e1dfcc65c4236c8b5d625c6e0e0f12
2017-07-13 15:25:45 +00:00
codynguyen1116 4152936362 Clean up CSS for AJAXPoll
- Removing -moz-border-radius since it's unnecessary
- Lowercasing color values
- Removing unnecessary unit for 0 value

Bug: T154049
Change-Id: I210ba9c971f18ce2b62fb2fe845cd90cca2901d5
2016-12-23 21:56:36 +00:00
Siebrand Mazeland 67daaf5a32 Add tests
Fix all issues so tests pass.

Change-Id: I80408432a42f1b1df265e81cc4eff784d8c59a2e
2015-10-16 01:38:33 +01:00
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