diff --git a/resources/ext.popups/actions.js b/resources/ext.popups/actions.js index 45117dec3..793d07c9c 100644 --- a/resources/ext.popups/actions.js +++ b/resources/ext.popups/actions.js @@ -41,6 +41,20 @@ }; }; + /** + * Represents the user clicking on a link with their mouse, keyboard, or an + * assistive device. + * + * @param {jQuery} $el + * @return {Object} + */ + actions.linkClick = function ( $el ) { + return { + type: 'LINK_CLICK', + el: $el + }; + }; + /** * Creates an object whose methods encapsulate all actions that can be * dispatched to the given diff --git a/resources/ext.popups/boot.js b/resources/ext.popups/boot.js index e77829425..1692beaaf 100644 --- a/resources/ext.popups/boot.js +++ b/resources/ext.popups/boot.js @@ -69,7 +69,11 @@ } ) .on( 'mouseout blur', function () { actions.linkAbandon( this ); + } ) + .on( 'click', function () { + actions.linkClick( this ); } ); + } ); } );