##// END OF EJS Templates
make sticky time configurable
Matthias BUSSONNIER -
Show More
@@ -292,15 +292,16 b' var IPython = (function (IPython) {'
292 292 // it won't be removed by remove_and_cancell() unless you called with
293 293 // the first parameter set to true.
294 294 // remove_and_cancell_tooltip(true)
295 Tooltip.prototype.stick = function()
295 Tooltip.prototype.stick = function(time)
296 296 {
297 time = (time != undefined ) ? time:10;
297 298 var that = this;
298 299 this._sticky = true;
299 300 this._clocklink.show('slow');
300 301 this._stick_timeout = setTimeout( function(){
301 302 that._sticky = false;
302 303 that._clocklink.hide('slow');
303 }, 10*1000
304 }, time*1000
304 305 );
305 306 }
306 307
General Comments 0
You need to be logged in to leave comments. Login now