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