##// END OF EJS Templates
Merge pull request #1224 from minrk/dblclick...
Min RK -
r5841:f68e34b8 merge
parent child Browse files
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 TextCell.prototype.edit = function () {
75 TextCell.prototype.edit = function () {
69 if ( this.read_only ) return;
76 if ( this.read_only ) return;
70 if (this.rendered === true) {
77 if (this.rendered === true) {
@@ -89,13 +96,10 b' var IPython = (function (IPython) {'
89 TextCell.prototype.config_mathjax = function () {
96 TextCell.prototype.config_mathjax = function () {
90 var text_cell = this.element;
97 var text_cell = this.element;
91 var that = this;
98 var that = this;
92 text_cell.click(function () {
99 text_cell.dblclick(function () {
93 that.edit();
100 that.edit();
94 }).focusout(function () {
95 that.render();
96 });
101 });
97
102 that.render();
98 text_cell.trigger("focusout");
99 };
103 };
100
104
101
105
General Comments 0
You need to be logged in to leave comments. Login now