##// END OF EJS Templates
Minor changes....
Brian E. Granger -
Show More
@@ -122,7 +122,6 var IPython = (function (IPython) {
122 var ws_url = data.ws_url;
122 var ws_url = data.ws_url;
123 var early = data.early;
123 var early = data.early;
124 var msg;
124 var msg;
125 console.log(early);
126 if (!early) {
125 if (!early) {
127 knw.set_message('Reconnecting WebSockets', 1000);
126 knw.set_message('Reconnecting WebSockets', 1000);
128 setTimeout(function () {
127 setTimeout(function () {
@@ -111,7 +111,6 var IPython = (function (IPython) {
111 }, function (cell) {
111 }, function (cell) {
112 that.cancel_stick();
112 that.cancel_stick();
113 that.showInPager(cell);
113 that.showInPager(cell);
114 that._cmfocus();
115 }];
114 }];
116 // call after all the tabs function above have bee call to clean their effects
115 // call after all the tabs function above have bee call to clean their effects
117 // if necessary
116 // if necessary
@@ -136,7 +135,6 var IPython = (function (IPython) {
136 'silent': false
135 'silent': false
137 });
136 });
138 this.remove_and_cancel_tooltip();
137 this.remove_and_cancel_tooltip();
139 this._cmfocus();
140 }
138 }
141
139
142 // grow the tooltip verticaly
140 // grow the tooltip verticaly
@@ -144,7 +142,6 var IPython = (function (IPython) {
144 this.text.removeClass('smalltooltip');
142 this.text.removeClass('smalltooltip');
145 this.text.addClass('bigtooltip');
143 this.text.addClass('bigtooltip');
146 $('#expanbutton').hide('slow');
144 $('#expanbutton').hide('slow');
147 this._cmfocus();
148 }
145 }
149
146
150 // deal with all the logic of hiding the tooltip
147 // deal with all the logic of hiding the tooltip
@@ -170,7 +167,6 var IPython = (function (IPython) {
170 }
167 }
171 this.cancel_pending();
168 this.cancel_pending();
172 this.reset_tabs_function();
169 this.reset_tabs_function();
173 this._cmfocus();
174 }
170 }
175
171
176 // cancel autocall done after '(' for example.
172 // cancel autocall done after '(' for example.
@@ -357,17 +353,6 var IPython = (function (IPython) {
357 this.text.scrollTop(0);
353 this.text.scrollTop(0);
358 }
354 }
359
355
360 // convenient funciton to have the correct code_mirror back into focus
361 Tooltip.prototype._cmfocus = function () {
362 var cm = this.code_mirror;
363 if (IPython.notebook !== undefined) {
364 if (cm == IPython.notebook.get_selected_cell()) {
365 setTimeout(function () {
366 cm.focus();
367 }, 50);
368 }
369 }
370 }
371
356
372 IPython.Tooltip = Tooltip;
357 IPython.Tooltip = Tooltip;
373
358
General Comments 0
You need to be logged in to leave comments. Login now