# HG changeset patch # User Lennard de Rijk # Date 1232128362 0 # Node ID 7b8c65531fbd61373796dc0ecf69f1d1efe09c67 # Parent 25ffebd9fa8f3977ab1f37af98fd65be59895382 Tooltips now properly disappear when another text box with a tooltip has been highlighted. Also known as Issue 132. Patch by: Mario Ferraro Reviewed by: Lennard de Rijk diff -r 25ffebd9fa8f -r 7b8c65531fbd app/jquery/jquery-bt-0.7.js --- a/app/jquery/jquery-bt-0.7.js Thu Jan 15 17:01:15 2009 +0000 +++ b/app/jquery/jquery-bt-0.7.js Fri Jan 16 17:52:42 2009 +0000 @@ -118,8 +118,13 @@ var contentSelect = false; } + var tooltips_pool = []; + + return this.each(function(index) { + tooltips_pool.push(this); + var opts = jQuery.extend(false, jQuery.fn.bt.defaults, options); // clean up the options @@ -129,6 +134,10 @@ var turnOn = function () { + for (var x in tooltips_pool) { + turnOff.apply(tooltips_pool[x]); + } + if (typeof $(this).data('bt-box') == 'object') { // if there's already a popup, remove it before creating a new one. turnOff.apply(this);