trigger textcell render on unselect instead of focusout

This commit is contained in:
MinRK 2012-01-05 14:54:50 -08:00
parent 5cce816d2a
commit 2c8106bf42

View File

@ -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();
};