From 2794039142eefea6755a130f9ed8870128a06d5e Mon Sep 17 00:00:00 2001 From: florianschmidtwelzow Date: Fri, 23 May 2014 12:14:09 +0200 Subject: [PATCH] Close the tipsy tooltip when clicked on it We want to close tipsy when user clicks on itself, not on trigger. Bug: 65664 Change-Id: I0de52d3917a984e675e42b83b9f5b767bd7f2e4b --- resources/js/ext.uls.interface.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/js/ext.uls.interface.js b/resources/js/ext.uls.interface.js index aee65344..4ebc846d 100644 --- a/resources/js/ext.uls.interface.js +++ b/resources/js/ext.uls.interface.js @@ -257,6 +257,11 @@ }, timeout ); } ); + // hide the tooltip when clicked on it + $( '.tipsy' ).on( 'click', function () { + hideTipsy(); + } ); + // Event handler for links in the tooltip. // It looks like the tipsy is always created from scratch so that // there wont be multiple event handlers bound to same click. @@ -297,11 +302,6 @@ showTipsy( 3000 ); } } ); - - // hide the tooltip when clicked on uls trigger - $ulsTrigger.on( 'click', function () { - hideTipsy(); - } ); } $( document ).ready( function () {