Commit graph

672 commits

Author SHA1 Message Date
Prateek Saxena 8f4e12d4b1 disablenavpop: Use winow onload instead of dom ready
This code has not been working because processAllPopups does
not execute. Test the change with:
https://en.wikipedia.org/wiki/User:Prtksxna/common.js

Bug: 62952
Change-Id: I3c8b5590b89693743c85c006fc0ee0a50e8b8342
2014-08-20 19:36:23 +05:30
Prateek Saxena e66ec613db article: Fix settings icon
1. Change color from #777 to #AAA
2. Add PNG fallback using `background-image-svg`

Bug: 69022
Change-Id: I0bbfe2aaa0c6e6ed1300bafa1352dd54037929b9
2014-08-19 22:22:21 +05:30
Prateek Saxena 10e9192719 settings: Fix margins
Change-Id: I3ad652b05d990377c6a01a0abb8091f1ff2443c7
2014-08-19 20:36:08 +05:30
Prateek Saxena d9322cfe9e settings: Fix alignment issues
Change-Id: Iacc1e934822f58fbc848b426783d02b5f9c9477e
2014-08-18 17:54:47 +05:30
Translation updater bot cfea3236e8 Localisation updates from https://translatewiki.net.
Change-Id: I2d57779601a706c896e82cf336fed4ad7975a200
2014-08-17 23:08:09 +02:00
Translation updater bot e86d476a51 Localisation updates from https://translatewiki.net.
Change-Id: Id6a7545611b43a64bb9675f42fa9ca61ee5d8135
2014-08-14 23:39:11 +02:00
Prtksxna 4cba605476 Merge "Don't render popup on "javascript:..." links." 2014-08-13 11:08:46 +00:00
Translation updater bot 51979476dd Localisation updates from https://translatewiki.net.
Change-Id: Ia1d2aa86d721dd5b0c6dee9f94ac49cb4f7be791
2014-08-12 21:38:46 +02:00
jenkins-bot 26cd77cfdc Merge "Replace hardcoded path with wgExtensionAssetsPath" 2014-08-12 13:36:36 +00:00
Prateek Saxena d77d6005c1 Replace hardcoded path with wgExtensionAssetsPath
Change-Id: I3cf15bc4f9c9f1273b896d0e256f5821f15222fb
2014-08-12 18:08:31 +05:30
Prateek Saxena 26962431c3 Stop showing the NavigationPopups options if it isn't available
This got committed by accident in I374805eed0bc9f262b29474093f0357c56b42c83

Change-Id: Ic2dba3bd3b488aea97d7f3be3a56cf9f44912355
2014-08-12 16:10:57 +05:30
Translation updater bot 7370f63296 Localisation updates from https://translatewiki.net.
Change-Id: Iaf2070de9edbfa2222646c3247e31a5e9bec519a
2014-08-11 23:08:22 +02:00
Translation updater bot 4fdc74fe3a Localisation updates from https://translatewiki.net.
Change-Id: Ic5ba476af6d0d1ad399480a5c50e6af5f5f85aa1
2014-08-09 20:00:13 +02:00
S Page 0f724cc45f Don't render popup on "javascript:..." links.
Also some doc.

Bug: 68417
Change-Id: Ib8b53f131f05477adfa12c8284f624d5c70d995f
2014-08-06 13:54:24 +01:00
jenkins-bot bfc6e6500e Merge "Make <br> warning not trigger" 2014-08-06 10:44:49 +00:00
Translation updater bot 5664032997 Localisation updates from https://translatewiki.net.
Change-Id: I73dbf11ab4dfafe3e3215f2a14b2f2f3bceaf144
2014-08-05 21:57:59 +02:00
Translation updater bot 6a5ea61fd1 Localisation updates from https://translatewiki.net.
Change-Id: Id89b84812fd6516a188dc705cfe633deb5f63c6e
2014-08-04 21:56:23 +02:00
lokal-profil 44f5456527 Make <br> warning not trigger
Change <br> to <br /> to not trigger warning in translatewiki.net

Changes:
* popups-settings-option-read-quickly-description"

Change-Id: If988bf5060cfa6a6ccdd99ee02d6924e4b53ef2c
2014-08-04 14:39:39 +02:00
Translation updater bot 2a1ab594d3 Localisation updates from https://translatewiki.net.
Change-Id: I6e69e10b46565e859db87a7bda12c86496055079
2014-08-03 22:10:56 +02:00
Translation updater bot 139708e1f8 Localisation updates from https://translatewiki.net.
Change-Id: Iae66471f5d1776b06b915c04310779e98a99100a
2014-08-02 22:23:44 +02:00
Translation updater bot b8f1ce5f40 Localisation updates from https://translatewiki.net.
Change-Id: I15e736814796f6796863d84cc4ba74ebd86cc5a7
2014-08-01 21:33:51 +02:00
Translation updater bot fdf7c84ef5 Localisation updates from https://translatewiki.net.
Change-Id: Ie5d088f49e5c105f226b17d80f9a224abaab70f1
2014-07-31 22:16:58 +02:00
Translation updater bot cd11e127b2 Localisation updates from https://translatewiki.net.
Change-Id: Ibf7e795e74841b77ff498e158bb5820ba630f48a
2014-07-30 21:58:51 +02:00
Translation updater bot afb1f88a48 Localisation updates from https://translatewiki.net.
Change-Id: I865c006a8d74ec0767fbb6d0b066f7b38340e123
2014-07-29 21:56:24 +02:00
Prateek Saxena dd98179a15 Add settings
Save Hovercards enabled state in localStorage (jStorage)

Change-Id: I374805eed0bc9f262b29474093f0357c56b42c83
2014-07-28 13:38:03 +05:30
Translation updater bot 5a5f265286 Localisation updates from https://translatewiki.net.
Change-Id: I9bf85e0b32f96fc01ad2060f5c53beb7ebf1b634
2014-07-26 21:48:54 +02:00
Prateek Saxena e746ce668a core: Ignore '.external' links
Bug: 65929
Change-Id: Idba21c597d9d76333aa92ac40d2d0f813b02e971
2014-07-15 16:00:19 +00:00
Bartosz Dziewoński 36eaf4cec9 Use 'auto' instead of 'initial' in CSS
'initial' is not supported by all browsers (including all versions of
Internet Explorer and Opera 12 [1]), which causes visual glitches [2].

As the initial value for 'left' is 'auto' [3], this should cause no
visual changes in the browsers that supported the previous version.

[1] https://developer.mozilla.org/en-US/docs/Web/CSS/initial
[2] http://i.imgur.com/0Ze8lon.png
[3] http://www.w3.org/TR/CSS21/visuren.html#position-props

Change-Id: I8d661436f1106ca92b8b492c3fb76ac6976d80fa
2014-07-11 21:23:27 +02:00
Derk-Jan Hartman e9a56a3b85 Some small cleanup
Bunch attr actions, add to DOM as the last action, rm superfluous lines
and use strict.

Change-Id: I3e0870b108e978d7fd4093a6e7201fb6260f2e88
2014-07-09 12:03:10 +00:00
Derk-Jan Hartman 5025f2beee Handle links with empty or no title attributes
The script depends on a title being present in title attribute. So
skip links without title attributes (which were getting empty
attributes due to the implementation of removeTooltips) and bail on
trying to open a preview for links without a title.

Bug: 67728
Change-Id: I4cc744bea10af34741681f11e03d77b3d53e3a3b
2014-07-09 11:51:15 +00:00
Translation updater bot d60a70867c Localisation updates from https://translatewiki.net.
Change-Id: I9652afa2f5716004fdc988eb6a4542f87edb0dfa
2014-06-27 20:23:44 +00:00
Prtksxna e6adbef707 Merge "rename variable, and parentheses not brackets" 2014-06-25 00:50:51 +00:00
Prtksxna 8a680a2433 Merge "Raise popup show/hide delay to 500ms/300ms, respectively" 2014-06-25 00:46:15 +00:00
S Page 4c86e94e49 rename variable, and parentheses not brackets
removeBracketsFromText doesn't count it tracks nesting level, and
brackets are [] not ().  Minor detail.

Change-Id: I8f42b1ccae5233d7b6062bb311eced6ef3085d4a
2014-06-24 01:23:05 -07:00
jenkins-bot 49c0c2f669 Merge "render.article: Remove brackets using code instead of RegExp" 2014-06-24 08:12:55 +00:00
jenkins-bot 2cb63c5226 Merge "render.article.getProcessesHtml: Add tests" 2014-06-24 08:02:28 +00:00
Prtksxna b65954645f Merge "Check for empty response" 2014-06-23 01:51:15 +00:00
Derk-Jan Hartman e3de26ebfe Re-use result instead of querying the DOM for selector multiple times
It's a complicated query, we should not repeat it when not necessary.

Change-Id: I71d47de088afa7dab0a6eaed214c61db699fcd0c
2014-06-23 06:47:38 +05:30
Bartosz Dziewoński 3041d358ed Raise popup show/hide delay to 500ms/300ms, respectively
Per discussion on the bug, the current values of 150ms/100ms cause a
lot of unintended actions.

Bug: 64234
Change-Id: I6fe2d89ad97630ec5c7f47d3e3b9b71d7cfc5d3f
2014-06-20 16:48:00 +02:00
Fomafix 58be4ea1de Check for empty response
In combination with other gadgets the error
TypeError: re.query is undefined
can occur because the request contains titles:'' and the response is [].

Change-Id: I46d02e7c48a55cd9af20fd7ef729b4d26f69a8c0
2014-06-18 20:57:19 +00:00
Prateek Saxena f44b1701a2 render.article: Remove brackets using code instead of RegExp
Casees:
1) Hello (and welcome)
2) Hello )and welcome(
3) (Hello (and) welcome)

The current RegExp only takes care of (1). The new code should
take care of all the cases.

Bug: 65138
Change-Id: I39f38beed0cf612067d6fc61b18295d1d38fcc22
2014-06-11 12:51:31 +05:30
Prateek Saxena 40222517ca render.article.getProcessesHtml: Add tests
Change-Id: I2e000fd884df9113f1810ec1ca2aa1562a88790b
2014-06-11 12:47:52 +05:30
Prateek Saxena 0192822522 disablenavpop: Correct type check for disablePopups global
Change-Id: I33f62c74fe231c74cf54937aa43ac35ae15a0b37
2014-06-10 16:50:24 +05:30
jenkins-bot 8682faa2f6 Merge "renderer.article: Escape RegExp syntax from the article's title" 2014-06-08 12:46:16 +00:00
jenkins-bot f0d58e0f7d Merge "animation: Use the animation mixin in core and pass fill-mode as an argument" 2014-06-06 11:10:24 +00:00
Prateek Saxena a6ad92e9fd Disable NavigationPopups (Gadget) if Popups (Extension) is enabled
Bug: 62952
Change-Id: If3757199c280bb0ad54878111dcf926b88778b64
2014-06-06 13:04:34 +05:30
Prateek Saxena 2b59d8530d renderer.article: Escape RegExp syntax from the article's title
Bug: 66203
Change-Id: Id9b523643e8540a717919fa5bb65a6d980722c0f
2014-06-06 09:56:13 +05:30
Prateek Saxena 4a15462ea0 animation: Use the animation mixin in core and pass fill-mode as an argument
Bug: 65923
Change-Id: I4222d811d56a84fe046dfe4a96eda636e76967a5
2014-06-03 11:56:00 +05:30
Prateek Saxena d1ddb95067 Flip the animation direction if the Hovercard is flipped
Change-Id: I890d49c517a52e57e0b22bcf1949b347d531d6b7
2014-05-30 16:25:14 +05:30
Prateek Saxena a52242087f animation: Add fade animations from other directions
1. fade-in-down
2. fade-out-up

Change-Id: I108b6bb6bbb8ac49401e9dc0d6599e57c42abf62
2014-05-30 05:18:05 +05:30