Commit graph

376 commits

Author SHA1 Message Date
Translation updater bot 057c03aea4 Localisation updates from https://translatewiki.net.
Change-Id: I03e2c8958a90d27dfc2ea8b5932b28fe5c8ab91f
2015-04-07 22:19:07 +02:00
jenkins-bot a5d4bec8fd Merge "Use href attribute to calculate titles" 2015-04-07 10:04:55 +00:00
Translation updater bot 8b09f7f889 Localisation updates from https://translatewiki.net.
Change-Id: I56a9233cf4956cfcc698dfccb1e774cd65b7a128
2015-04-06 21:48:01 +02:00
wctaiwan 642bdf013e Use href attribute to calculate titles
This is needed for wikis that use LanguageConverter, since the title
attribute is converted to the user's variant, and the canonical title is
needed for the API unless converttitles is specified.

For filtering, instead of comparing linkHref and expectedHref, filter
out links that have other query parameters or aren't in content
namespaces.

Bug: T93605
Change-Id: I5534753307ed5e1d4b27c52c616fd143b2a397e1
2015-04-06 05:55:25 -04:00
jenkins-bot e6d43ccc16 Merge "logger: Add a sampling rate of 10" 2015-04-06 09:21:50 +00:00
jenkins-bot e21d08e0d0 Merge "Implement the new schema for when the popups are disabled" 2015-04-06 09:19:03 +00:00
jenkins-bot 0ff656a892 Merge "Implement the new schema for when the popups are enabled" 2015-04-06 09:18:16 +00:00
jenkins-bot 7fe8f5d45f Merge "Add icon and link to qualtric survey if $wgPopupsSurveyLink is defined" 2015-04-06 09:03:26 +00:00
Translation updater bot 56453bc7b1 Localisation updates from https://translatewiki.net.
Change-Id: Id618c62f67c1aed8f3ea512666877a4a7f88f33f
2015-04-03 21:26:22 +02:00
Translation updater bot 985f0073f6 Localisation updates from https://translatewiki.net.
Change-Id: Ie9751fe198c172e48476e41ce8c72e7797128cd2
2015-04-02 21:25:42 +02:00
Prateek Saxena 8fbacb9040 Add icon and link to qualtric survey if $wgPopupsSurveyLink is defined
The link to the survey is added in Ic445732197e6abeba459b40b1416d8a71bc23bd6

Bug: T1005
Change-Id: I24bfd5fd622d1afc4372dbd4bfca3879927b0c17
2015-04-02 15:29:15 +05:30
Translation updater bot 5d73e3eedd Localisation updates from https://translatewiki.net.
Change-Id: Ibc6dcc3ee0b2a9ec05c25c53a9199068f518714a
2015-04-01 22:38:02 +02:00
Translation updater bot b1c4b07b60 Localisation updates from https://translatewiki.net.
Change-Id: I6ab899a073dd49cdb1bfb351960ba8572936c066
2015-03-30 21:49:09 +02:00
Translation updater bot 5af03f73d2 Localisation updates from https://translatewiki.net.
Change-Id: I9a59089b91451d1fac5b5938152fdfc957282adf
2015-03-29 15:06:49 +02:00
jenkins-bot 37f1c00629 Merge "renderer.article.getProcessedElements: Stop escaping the title and the extract" 2015-03-27 18:45:54 +00:00
jenkins-bot d478a820a9 Merge "Rename popups.eventLogging to popups.logger" 2015-03-27 13:18:32 +00:00
Prateek Saxena f4dbd455c6 logger: Add a sampling rate of 10
This rate was decided in T88173

Bug: T88167
Change-Id: I22776582c271fa83ba5b98d38dd01775ebbfcef1
2015-03-27 04:35:12 +05:30
Prateek Saxena c39bbc8a68 Implement the new schema for when the popups are disabled
Bug: T88167
Change-Id: If8f1c97379bd37958ec6064242bdebf5fde14b47
2015-03-27 04:34:58 +05:30
se4598 946b4f4926 Do API queries after API_DELAY
Based on the comments this is what it supposed to be.
mw.popups.render.article does the API-queries on init, so do that after
the API_DELAY-timer fired.

Change-Id: Ia235cbe1eb86fc774edda84208d320843401624e
2015-03-26 15:03:38 +01:00
Prateek Saxena 20f2bef272 renderer.article.getProcessedElements: Stop escaping the title and the extract
Both the title and the extract were being html escaped thus producing
string like ' and " when used with .text(). So, we now use
document.createTextNode() for the normal text and .text() with the bolded
one.

Bug: T93720
Change-Id: I6bbc52e427dc636b7b0be1ad4f749d9273ff61b3
2015-03-26 19:28:20 +05:30
jenkins-bot 1572bcf150 Merge "settings: Use .text() instead of .html() for option's label" 2015-03-26 10:34:41 +00:00
jenkins-bot 7d21948d1a Merge "renderer.article: Ignore thumnail if the URL has suspicious characters" 2015-03-26 10:33:42 +00:00
Prateek Saxena 2971d90831 Implement the new schema for when the popups are enabled
Bug: T88167
Change-Id: I38c9e474e0ec7da45af8338a458430e5d7427463
2015-03-26 11:42:39 +05:30
Prateek Saxena d49cfb9b65 Rename popups.eventLogging to popups.logger
...and eventLogging.logEvent to logger.log

Change-Id: I9af697a56c2248069a32ac586f5b78b55095460e
2015-03-26 04:56:29 +05:30
Translation updater bot d7bba41956 Localisation updates from https://translatewiki.net.
Change-Id: Id0ba70f4f6126005b2449ca52e01ea13e0bd9de0
2015-03-25 22:20:00 +01:00
Translation updater bot 13d3df306d Localisation updates from https://translatewiki.net.
Change-Id: I14e13ccf9b050a7b52365229ddeebe6e58b98ef9
2015-03-24 22:28:29 +01:00
Purodha a294827f2a i18n: Remove reference to color in description message
See:
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Popups-settings-description/en

Change-Id: Ic89f2f71556bb1202f0d452e430f716ee359e264
2015-03-24 09:38:23 +00:00
Prateek Saxena 3b82fb60d9 settings: Use .text() instead of .html() for option's label
Bug: T88171
Change-Id: I5d4631870f916194901f897839cad4c90c2d8d01
2015-03-24 13:37:05 +05:30
Prateek Saxena 42d0347582 renderer.article: Ignore thumnail if the URL has suspicious characters
If the URL of the thumbnail has suspicious characters like ', " or \
return a <span> instead of trying to render a thumbnail.

Bug: T88171
Change-Id: Ide052ea2a7de166599d077a385a6e788bfa63302
2015-03-24 13:31:19 +05:30
Translation updater bot fc1fe6d473 Localisation updates from https://translatewiki.net.
Change-Id: Ic4cb4c916c068821b6c2f327b9629177b63b8e0b
2015-03-23 22:03:44 +01:00
Translation updater bot 6aa2688ba2 Localisation updates from https://translatewiki.net.
Change-Id: I600156349814062c6833cdca918a169a71d17353
2015-03-19 21:15:20 +01:00
Translation updater bot cd3aeeca41 Localisation updates from https://translatewiki.net.
Change-Id: I42d2a2490ac401aaa87f614269ff3af9a8fb6ace
2015-03-16 21:59:41 +01:00
jenkins-bot 5bdfbc6802 Merge "renderer.article: Don't apply tall/not-tall classes if the image wasn't shown" 2015-03-16 10:10:10 +00:00
Translation updater bot 1dc94ad7f6 Localisation updates from https://translatewiki.net.
Change-Id: I018d88c4736526d95d14e3d36d1784d812ec8514
2015-03-15 21:52:10 +01:00
Translation updater bot d49c2a26be Localisation updates from https://translatewiki.net.
Change-Id: I129097268a14f54474bd3e917da44980d8b6590c
2015-03-14 21:36:11 +01:00
Translation updater bot d59602ebbe Localisation updates from https://translatewiki.net.
Change-Id: I4a90c254a3f224d3a755f9946b717b22c5798764
2015-03-14 08:33:34 +01:00
Translation updater bot 3b0457a438 Localisation updates from https://translatewiki.net.
Change-Id: I6db6aef670f32ba05a9597c0af29234f824fd1a9
2015-03-09 22:08:55 +01:00
Translation updater bot e436f1544f Localisation updates from https://translatewiki.net.
Change-Id: Ib6c6731c72a60b7597d9ba642d5db4c6c06bd95d
2015-03-08 21:47:56 +01:00
Prateek Saxena 3eaf2829e8 renderer.article: Remove leading spaces before brackets
Bug: T69225
Change-Id: I83f79fa0ebd19bea6ed7ea266cece0778210adb2
2015-03-05 15:32:45 +05:30
Prateek Saxena df0b988eec renderer.article: Bold the title no matter what the trailing characters
Bug: T69229
Change-Id: I833c0dcae98010bc74b6b58ae8035aaac4e6465b
2015-03-05 15:31:42 +05:30
Prateek Saxena a43ef7ca51 Remove the need of .html in article.getProcessedHtml
Instead of replacing all instances of the title in the extract -

  '$1<b>$2</b>$3'

We now put symbolic strings there which we use to split the string
and then make an array of text and <b> elements that get appended
to $contentbox.

Bug: T76378
Change-Id: I02222bbff84532f63cac67af1bf889c328ec6ff2
2015-03-05 15:30:06 +05:30
Prateek Saxena e5880ffd40 renderer.article: Don't apply tall/not-tall classes if the image wasn't shown
Bug: T91433
Change-Id: I4499cc18e140c0bd18ee3731496aa427232922b4
2015-03-05 13:24:35 +05:30
jenkins-bot 62659d2c34 Merge "Improve mw.popups.selectPopupElements" 2015-03-04 12:10:23 +00:00
se4598 9974a75b50 Improve mw.popups.selectPopupElements
Use proven technology to create and compare URLs.
This will display popups also on anchored links again.

Change-Id: Ic010ca027017435f666782e709e641cf3bbb8767
2015-03-04 17:21:37 +05:30
Translation updater bot bed295c948 Localisation updates from https://translatewiki.net.
Change-Id: I2a1ded2fa7681a42302b4e837cfc38e2fc253328
2015-03-02 22:10:39 +01:00
Translation updater bot 8707f8ec52 Localisation updates from https://translatewiki.net.
Change-Id: Ib0f022d94c2a9328110eb72707b764fdee8fac50
2015-03-01 22:07:49 +01:00
Translation updater bot 5e8b6ec6a6 Localisation updates from https://translatewiki.net.
Change-Id: I07c6eab4be1d40966b7c09d8489e137a7b22e8ed
2015-02-26 21:37:46 +01:00
Translation updater bot 80a00ee311 Localisation updates from https://translatewiki.net.
Change-Id: I928c71eac415295e305eee77004bb76ae65ab7e8
2015-02-24 22:03:06 +01:00
se4598 64195b8ff7 fix mw.popups.selectPopupElements
Hotfix for Ie34064860a81c7866b8e8b86858d2e12a8a196f4
Still won't show up popups for anchored links, but dunno if intended. 

Change-Id: I91a15153cb8bcae6d8ef2e5616855e4d45be6d78
2015-02-24 00:14:02 +01:00
jenkins-bot 782d9e37ba Merge "eventLogging: Use generateRandomSessionId" 2015-02-20 11:06:01 +00:00