SamanthaNguyen
4c4348557c
Reorganize directory structure + file renaming
...
Bug: T160849
Change-Id: I4c7ec4d2c5e1dfcc65c4236c8b5d625c6e0e0f12
2017-07-13 15:25:45 +00:00
Kunal Mehta
123f769f09
build: Updating mediawiki/mediawiki-codesniffer to 0.9.0
...
The following sniffs are failing and were disabled:
* MediaWiki.Commenting.FunctionComment.MissingParamComment
* MediaWiki.Commenting.FunctionComment.MissingParamTag
* MediaWiki.Commenting.FunctionComment.ParamNameNoMatch
* MediaWiki.Commenting.FunctionComment.WrongStyle
* MediaWiki.FunctionComment.Missing.Public
* MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName
* MediaWiki.Usage.SuperGlobalsUsage.SuperGlobals
* MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment
Change-Id: I7c25674d11ec1157547361695aaf71c800a02b63
2017-06-19 19:27:42 -07:00
Kunal Mehta
19c0147d3f
build: Updating mediawiki/mediawiki-codesniffer to 0.7.1
...
Also added "composer fix" command.
Change-Id: If26ece876524ff6e11f90c56c28282f135f296ac
2016-05-09 16:15:51 -07:00
Aaron Schulz
844deed643
Replace DB begin()/commit() with startAtomic()/endAtomic() as needed
...
Bug: T120791
Change-Id: I6d76b2487ea9e77d0fffc2ab22a6640eb2e639b5
2015-12-07 17:46:39 -08:00
Umherirrender
1fd272f0b3
Fix phpcs errors
...
Found by tests:
https://integration.wikimedia.org/ci/job/php-composer-test/19310/console
Change-Id: I8eedb027c543cd9ee28db3a2321e89ede74bfded
2015-11-05 21:45:46 +01:00
Siebrand Mazeland
67daaf5a32
Add tests
...
Fix all issues so tests pass.
Change-Id: I80408432a42f1b1df265e81cc4eff784d8c59a2e
2015-10-16 01:38:33 +01:00
Kunal Mehta
1796f64d81
Remove misleading "sajax" comment
...
The JavaScript does not use the sajax library, it just uses action=ajax with
jQuery.
Change-Id: Icac6b29881ce8716e14fbc12074ce422f3ea2df8
2015-08-02 21:50:42 -07:00
Siebrand Mazeland
47b56dd855
Split time and date
...
Per
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Ajaxpoll-your-vote/en
Change-Id: If393af3cbed3514f973b16b05635c4860fb52d25
2014-12-28 20:23:39 +01:00
Kunal Mehta
b7ab4f23f4
Only load "ext.ajaxpoll" on pages that need it
...
Change-Id: I0e989b3c059b7aaf049476c8bb847bebf9ef4089
2014-10-03 02:54:26 -07:00
addshore
7e65ec1e61
Remove use of deprecated wfGetIP()
...
Change-Id: I3de017317ea27ac816ffd7237724b1df439dff53
2014-08-29 13:38:33 +01:00
Chad Horohoe
0d3af3499a
Remove unused globals
...
Change-Id: I55c1b147608ac79372998cb93bd9c9ecf31d97bf
2014-01-02 09:46:38 -08:00
Chad Horohoe
47265b94f3
Remove unused $wgTitle
...
Change-Id: I140f42d91439b19358b22c33b13fe0844451a321
2013-11-14 09:32:59 -08:00
Wikinaut
f60c7b3c67
add optional id parameter; make extension working in templates
...
as proposed in
https://www.mediawiki.org/w/index.php?title=Extension_talk:AJAXPoll&dir=prev&offset=20130129204525&limit=20&lqt_mustshow=31153#Does_not_work_properly_within_templates_31145 and
https://www.mediawiki.org/w/index.php?title=Extension_talk:AJAXPoll&dir=prev&offset=20130129204525&limit=20&lqt_mustshow=31153#adding_an_id_parameter_would_be_helpful_31153
Change-Id: I5e633c1e76cbef9e78a5b1225794e11492b44c3c
2013-08-15 17:20:10 +00:00
Wikinaut
fc1261a5cc
code cosmetics: extension now uses Html class
...
Change-Id: I62a0c1fa0bcc541a533432a0a742b06894ad2c00
2013-06-14 00:05:51 +02:00
Wikinaut
0a73018060
fixed a problem with fractional percentages
...
when rendering the result bar do not use localized percentage string
width must contain a dot like 33.33% but must not come with a comma like 33,33%
Change-Id: Id2dd68cb8df339358b274df08d713eee351adf42
2013-05-31 08:41:13 +02:00
Wikinaut
3c92a31066
(bug 35119) show poll results only for users who voted (options to override)
...
0. bump version 1.81 20130526
1. new: poll results are by default _not_ shown when the user has not voted
2. a new optional (per-poll) tag parameter "show-results-before-voting" is introduced
<poll show-results-before-voting>
<poll show-results-before-voting=1>
3. introduction of new group permissions:
* ajaxpoll-viewresults
* ajaxpoll-viewresults-before-voting
4. schema change
this version requires a database update ( php maintenance/update.php )
updater included
Change-Id: Iae1f3f2806afecbca3e3c41460dbbf20fc557525
2013-05-26 22:04:04 +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
Wikinaut
d53c0dd89b
removed depreacted wfMsg; added db->begin which fixed a database error message
...
version 1.792 20130526
Change-Id: I86849ed7b3e64032e6f78b0becc4a87cbface24f
2013-05-26 09:34:30 +02:00
Wikinaut
342f495936
maintenance fix: version 1.791
...
changed variable name $user to $userName to make that clear
Change-Id: I02fe6485076fe24bbc64c3228764654c06f9aed4
2013-05-26 08:58:04 +02:00
Wikinaut
ecc219eeb1
mw1.19 compatible db;version 1.79
...
Change-Id: Icdbd485d1c1e879964495a46725be7c780eab679
2013-01-01 09:42:59 +01:00
Thomas Gries
f7533800ee
removed the redundant code for handling tracking categories. By using '-' for the message text ajaxpoll-tracking-category , this can be disabled easily.
2012-03-19 18:45:57 +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
1aead3f25e
making corresponding change as a follow up r114050
2012-03-17 08:59:18 +00:00
Thomas Gries
b87b382f2f
code cosmetics. jquery improvements.
2012-03-15 07:46:55 +00:00
Thomas Gries
5be0d48bfe
follow up r113839 fixes the initial database creation problem. relies on r113862 .
2012-03-14 21:43:56 +00:00
Thomas Gries
f52b0c916a
follow up r113837 oops, i forgot to make the corresponding database changes in the code
2012-03-14 20:28:16 +00:00
Thomas Gries
1292f3b142
version 1.72 -- schema change. database rename . dropping an unused table field. follow up r113772
2012-03-14 20:19:16 +00:00
Thomas Gries
999f2e067f
follow up r113772 . getText() changed to getPrefixedText() in order to store the full page name in the database for admins convenience. It does not influence the voting and rendering of polls, because this value is never read.
2012-03-14 07:18:14 +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
Thomas Gries
a213ded538
follow up r113686 . correction of algorithm for voting for the last answer, this was wrongly treated as revoke action
2012-03-13 01:04:59 +00:00
Thomas Gries
632fd5befc
added method for votersto revoke their vote.
2012-03-12 23:56:59 +00:00
Thomas Gries
3efd345740
code cosmetics: master dbw, slave dbr names
2012-03-12 22:13:51 +00:00
Thomas Gries
ac7f0e1401
The unique poll-id (hash) is now invisibly with color=background-color placed into the lower right corner of the poll div. This allows admins an easier maintainance of polls, if this is needed.
2012-03-12 18:26:50 +00:00
Thomas Gries
83ce31afac
follow up r113554 . forgot - and fixed now - the server-side check of the ajaxpoll-vote permission. For viewers without voting permission it does not make sense to check one of the radio buttons, buttons are now unchecked on load.
2012-03-10 11:36:01 +00:00
Thomas Gries
954938f70f
fix enhancement bug35118 . add new user right ajaxpoll-vote
2012-03-10 09:26:52 +00:00
Thomas Gries
8c5275bfb9
follow up r113502 . Using also here the correct parser as passed as parameter. thanks to everyone who help, I overlooked that. Please bear with me - that extension was not written initially by me.
2012-03-09 23:24:38 +00:00
Thomas Gries
c9f9a68588
follow up r113503 - correction
2012-03-09 19:27:55 +00:00
Thomas Gries
5537c8dfca
follow up r113502 - readded method by reedy. Lost despite of using svn up, how can this happen?
2012-03-09 19:26:20 +00:00
Thomas Gries
aa21f9774c
add tracking category feature (enabled by default). Each page using this extensions get automatically the tracking category with MediaWiki:Ajaxpoll-tracking-category name (= Poll). Tracking-Cat-Feature can be disabled, or a different MediaWiki message text can be assigned. Documentation of the switch is inline and follows on MediaWiki.
2012-03-09 19:23:28 +00:00
Sam Reed
6cba21c57f
Add some more __METHOD__
2012-02-29 15:36:10 +00:00
Thomas Gries
2e6bcf6bd9
removed spurious yellow line in css stylesheet (display:none on load)
2012-02-22 19:07:58 +00:00
Thomas Gries
445ebb808e
Four-file version. Class moved to AJAXPoll_body.php
2012-02-19 19:31:24 +00:00