mirror of
https://github.com/jupyter/notebook.git
synced 2025-02-23 12:49:41 +08:00
trigger textcell render on unselect instead of focusout
This commit is contained in:
parent
5cce816d2a
commit
2c8106bf42
@ -65,6 +65,13 @@ var IPython = (function (IPython) {
|
||||
};
|
||||
|
||||
|
||||
TextCell.prototype.unselect = function() {
|
||||
// render on selection of another cell
|
||||
this.render();
|
||||
IPython.Cell.prototype.unselect.apply(this);
|
||||
};
|
||||
|
||||
|
||||
TextCell.prototype.edit = function () {
|
||||
if ( this.read_only ) return;
|
||||
if (this.rendered === true) {
|
||||
@ -91,11 +98,8 @@ var IPython = (function (IPython) {
|
||||
var that = this;
|
||||
text_cell.dblclick(function () {
|
||||
that.edit();
|
||||
}).focusout(function () {
|
||||
that.render();
|
||||
});
|
||||
|
||||
text_cell.trigger("focusout");
|
||||
that.render();
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user