Show More
@@ -292,15 +292,16 b' var IPython = (function (IPython) {' | |||||
292 | // it won't be removed by remove_and_cancell() unless you called with |
|
292 | // it won't be removed by remove_and_cancell() unless you called with | |
293 | // the first parameter set to true. |
|
293 | // the first parameter set to true. | |
294 | // remove_and_cancell_tooltip(true) |
|
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 | var that = this; |
|
298 | var that = this; | |
298 | this._sticky = true; |
|
299 | this._sticky = true; | |
299 | this._clocklink.show('slow'); |
|
300 | this._clocklink.show('slow'); | |
300 | this._stick_timeout = setTimeout( function(){ |
|
301 | this._stick_timeout = setTimeout( function(){ | |
301 | that._sticky = false; |
|
302 | that._sticky = false; | |
302 | that._clocklink.hide('slow'); |
|
303 | that._clocklink.hide('slow'); | |
303 |
}, |
|
304 | }, time*1000 | |
304 | ); |
|
305 | ); | |
305 | } |
|
306 | } | |
306 |
|
307 |
General Comments 0
You need to be logged in to leave comments.
Login now