Show More
@@ -126,9 +126,9 b' var IPython = (function (IPython) {' | |||
|
126 | 126 | this.tabs_functions = [ function(cell,text){that._request_tooltip(cell,text)}, |
|
127 | 127 | function(){that.expand()}, |
|
128 | 128 | function(){that.stick()}, |
|
129 | function(){ | |
|
129 | function(cell){ | |
|
130 | 130 | that.cancel_stick(); |
|
131 | that.showInPager(); | |
|
131 | that.showInPager(cell); | |
|
132 | 132 | that._cmfocus(); |
|
133 | 133 | } |
|
134 | 134 | ]; |
@@ -141,13 +141,16 b' var IPython = (function (IPython) {' | |||
|
141 | 141 | } |
|
142 | 142 | }; |
|
143 | 143 | |
|
144 | Tooltip.prototype.showInPager = function() | |
|
144 | Tooltip.prototype.showInPager = function(cell) | |
|
145 | 145 | { |
|
146 | 146 | // reexecute last call in pager by appending ? to show back in pager |
|
147 | 147 | var that = this; |
|
148 | var callbacks = {'execute_reply': $.proxy(that._handle_execute_reply,that)} | |
|
149 |
|
|
|
150 | ||
|
148 | var empty = function(){}; | |
|
149 | IPython.notebook.kernel.execute( | |
|
150 | that.name+'?', | |
|
151 | {'execute_reply':empty,'output':empty,'clear_output':empty,'cell':cell}, | |
|
152 | {'silent':false} | |
|
153 | ); | |
|
151 | 154 | this.remove_and_cancel_tooltip(); |
|
152 | 155 | this._cmfocus(); |
|
153 | 156 | } |
@@ -270,7 +273,6 b' var IPython = (function (IPython) {' | |||
|
270 | 273 | // cancel the option of having the tooltip to stick |
|
271 | 274 | Tooltip.prototype.cancel_stick = function() |
|
272 | 275 | { |
|
273 | console.log('cancel stick'); | |
|
274 | 276 | clearTimeout(this._stick_timeout); |
|
275 | 277 | this._stick_timeout = null; |
|
276 | 278 | this._clocklink.hide('slow'); |
General Comments 0
You need to be logged in to leave comments.
Login now