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
This commit is contained in:
committed by
Santhosh
parent
eb600dfbee
commit
2794039142
@@ -257,6 +257,11 @@
|
|||||||
}, timeout );
|
}, timeout );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
// hide the tooltip when clicked on it
|
||||||
|
$( '.tipsy' ).on( 'click', function () {
|
||||||
|
hideTipsy();
|
||||||
|
} );
|
||||||
|
|
||||||
// Event handler for links in the tooltip.
|
// Event handler for links in the tooltip.
|
||||||
// It looks like the tipsy is always created from scratch so that
|
// It looks like the tipsy is always created from scratch so that
|
||||||
// there wont be multiple event handlers bound to same click.
|
// there wont be multiple event handlers bound to same click.
|
||||||
@@ -297,11 +302,6 @@
|
|||||||
showTipsy( 3000 );
|
showTipsy( 3000 );
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
|
||||||
// hide the tooltip when clicked on uls trigger
|
|
||||||
$ulsTrigger.on( 'click', function () {
|
|
||||||
hideTipsy();
|
|
||||||
} );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$( document ).ready( function () {
|
$( document ).ready( function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user