Santhosh has uploaded a new change for review. https://gerrit.wikimedia.org/r/219310
Change subject: Don't hide the contribution menu on right click ...................................................................... Don't hide the contribution menu on right click Bug: T102940 Change-Id: I5e0df047eebe12f3453335bc9bdfd0910049a888 --- M modules/widgets/callout/ext.cx.callout.js 1 file changed, 6 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation refs/changes/10/219310/1 diff --git a/modules/widgets/callout/ext.cx.callout.js b/modules/widgets/callout/ext.cx.callout.js index 495bcbb..698c0e2 100644 --- a/modules/widgets/callout/ext.cx.callout.js +++ b/modules/widgets/callout/ext.cx.callout.js @@ -215,7 +215,12 @@ // On mouse enter of siblings, hide. self.$element.siblings().one( 'mouseenter', $.proxy( self.hide, self ) ); self.$dialog.one( 'mouseleave', $.proxy( self.hide, self ) ); - $( document ).one( 'click', $.proxy( self.hide, self ) ); + $( document ).one( 'mousedown', function ( e ) { + if ( e.which === 1 ) { + // Left click + self.hide(); + } + } ); } ); } if ( this.options.trigger === 'click' ) { -- To view, visit https://gerrit.wikimedia.org/r/219310 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I5e0df047eebe12f3453335bc9bdfd0910049a888 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/ContentTranslation Gerrit-Branch: master Gerrit-Owner: Santhosh <santhosh.thottin...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits