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