##// END OF EJS Templates
trigger textcell render on unselect instead of focusout
MinRK -
Show More
@@ -65,6 +65,13 b' var IPython = (function (IPython) {'
65 65 };
66 66
67 67
68 TextCell.prototype.unselect = function() {
69 // render on selection of another cell
70 this.render();
71 IPython.Cell.prototype.unselect.apply(this);
72 };
73
74
68 75 TextCell.prototype.edit = function () {
69 76 if ( this.read_only ) return;
70 77 if (this.rendered === true) {
@@ -91,11 +98,8 b' var IPython = (function (IPython) {'
91 98 var that = this;
92 99 text_cell.dblclick(function () {
93 100 that.edit();
94 }).focusout(function () {
95 that.render();
96 101 });
97
98 text_cell.trigger("focusout");
102 that.render();
99 103 };
100 104
101 105
General Comments 0
You need to be logged in to leave comments. Login now