Jdlrobson has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/311596

Change subject: Clicking a Hovercards legible link should close popup
......................................................................

Clicking a Hovercards legible link should close popup

Bug: T143051
Change-Id: Ifd6f75c2a53d8d7b5ef9fd3f232f85b55eea24c8
---
M resources/ext.popups.targets/desktopTarget.js
1 file changed, 5 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Popups 
refs/changes/96/311596/1

diff --git a/resources/ext.popups.targets/desktopTarget.js 
b/resources/ext.popups.targets/desktopTarget.js
index 3bd524e..26f069f 100644
--- a/resources/ext.popups.targets/desktopTarget.js
+++ b/resources/ext.popups.targets/desktopTarget.js
@@ -138,6 +138,11 @@
                mw.popups.$content = $content;
                $elements = mw.popups.selectPopupElements();
 
+               // On clicking a link the open popup (if any) should be hidden. 
(T143051)
+               $elements.on( 'mousedown', function () {
+                       mw.popups.render.closePopup();
+               } );
+
                $elements.on( 'mouseenter focus', function ( event ) {
                        var $link = $( this );
 

-- 
To view, visit https://gerrit.wikimedia.org/r/311596
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifd6f75c2a53d8d7b5ef9fd3f232f85b55eea24c8
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Popups
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <jrob...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to