##// END OF EJS Templates
Couple of whiteboard logic implementation misses
Jonathan Frederic -
Show More
@@ -402,14 +402,6 var IPython = (function (IPython) {
402 402 return false;
403 403 };
404 404
405 CodeCell.prototype.edit_mode = function (focus_editor) {
406 var cont = IPython.Cell.prototype.edit_mode.apply(this);
407 if (cont && focus_editor) {
408 this.focus_editor();
409 }
410 return cont;
411 };
412
413 405 /**
414 406 * Determine whether or not the unfocus event should be aknowledged.
415 407 *
@@ -554,7 +554,7 var IPython = (function (IPython) {
554 554 // Set the cell to edit mode and notify the keyboard manager if this
555 555 // is a change of mode for the notebook as a whole.
556 556 if (this.mode !== 'edit') {
557 cell.edit_mode(focus_editor);
557 cell.edit_mode();
558 558 this.mode = 'edit';
559 559 $([IPython.events]).trigger('edit_mode.Notebook');
560 560 IPython.keyboard_manager.edit_mode();
@@ -206,20 +206,6 var IPython = (function (IPython) {
206 206 this.render();
207 207 };
208 208
209 TextCell.prototype.edit_mode = function (focus_editor) {
210 var cont = IPython.Cell.prototype.edit_mode.apply(this);
211 if (cont) {
212 cont = this.unrender();
213 // Focus the editor if codemirror was just added to the page or the
214 // caller explicitly wants to focus the editor (usally when the
215 // edit_mode was triggered by something other than a mouse click).
216 if (cont || focus_editor) {
217 this.focus_editor();
218 }
219 }
220 return cont;
221 };
222
223 209 /**
224 210 * setter: {{#crossLink "TextCell/set_text"}}{{/crossLink}}
225 211 * @method get_text
General Comments 0
You need to be logged in to leave comments. Login now