mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-27 17:00:37 +00:00
Merge "Regression: correctly log the click action total interaction time"
This commit is contained in:
commit
46274a5518
|
@ -147,8 +147,10 @@
|
|||
linkInteractionToken: linkInteractionToken
|
||||
};
|
||||
|
||||
$link.on( 'mouseleave blur', mw.popups.render.leaveInactive )
|
||||
.off( 'click', logClickAction ).on( 'click', logClickAction );
|
||||
$link
|
||||
.on( 'mouseleave blur', mw.popups.render.leaveInactive )
|
||||
.off( 'click', mw.popups.render.clickHandler )
|
||||
.on( 'click', mw.popups.render.clickHandler );
|
||||
|
||||
if ( mw.popups.render.cache[ $link.attr( 'href' ) ] ) {
|
||||
openTimer = mw.popups.render.wait( mw.popups.render.POPUP_DELAY )
|
||||
|
|
|
@ -138,11 +138,6 @@
|
|||
mw.popups.$content = $content;
|
||||
$elements = mw.popups.selectPopupElements();
|
||||
|
||||
// On clicking a link the open popup (if any) should be hidden. (T143051)
|
||||
$elements.on( 'click', function () {
|
||||
mw.popups.render.closePopup();
|
||||
} );
|
||||
|
||||
$elements.on( 'mouseenter focus', function ( event ) {
|
||||
var $link = $( this );
|
||||
|
||||
|
|
Loading…
Reference in a new issue