##// END OF EJS Templates
Merge pull request #6416 from Carreau/foobarcode...
Min RK -
r18276:43b80ca3 merge
parent child Browse files
Show More
@@ -157,6 +157,16 b' define(['
157 that.events.trigger('command_mode.Cell', {cell: that});
157 that.events.trigger('command_mode.Cell', {cell: that});
158 });
158 });
159 }
159 }
160
161 this.element.dblclick(function () {
162 if (that.selected === false) {
163 this.events.trigger('select.Cell', {'cell':that});
164 }
165 var cont = that.unrender();
166 if (cont) {
167 that.focus_editor();
168 }
169 });
160 };
170 };
161
171
162 /**
172 /**
@@ -288,6 +288,7 b' define(['
288 delete CodeCell.msg_cells[old_msg_id];
288 delete CodeCell.msg_cells[old_msg_id];
289 }
289 }
290 CodeCell.msg_cells[this.last_msg_id] = this;
290 CodeCell.msg_cells[this.last_msg_id] = this;
291 this.render();
291 };
292 };
292
293
293 /**
294 /**
@@ -360,11 +361,6 b' define(['
360 return cont;
361 return cont;
361 };
362 };
362
363
363 CodeCell.prototype.unrender = function () {
364 // CodeCell is always rendered
365 return false;
366 };
367
368 CodeCell.prototype.select_all = function () {
364 CodeCell.prototype.select_all = function () {
369 var start = {line: 0, ch: 0};
365 var start = {line: 0, ch: 0};
370 var nlines = this.code_mirror.lineCount();
366 var nlines = this.code_mirror.lineCount();
@@ -92,27 +92,6 b' define(['
92 };
92 };
93
93
94
94
95 /**
96 * Bind the DOM evet to cell actions
97 * Need to be called after TextCell.create_element
98 * @private
99 * @method bind_event
100 */
101 TextCell.prototype.bind_events = function () {
102 Cell.prototype.bind_events.apply(this);
103 var that = this;
104
105 this.element.dblclick(function () {
106 if (that.selected === false) {
107 this.events.trigger('select.Cell', {'cell':that});
108 }
109 var cont = that.unrender();
110 if (cont) {
111 that.focus_editor();
112 }
113 });
114 };
115
116 // Cell level actions
95 // Cell level actions
117
96
118 TextCell.prototype.select = function () {
97 TextCell.prototype.select = function () {
General Comments 0
You need to be logged in to leave comments. Login now