don't hide cell toolbar on rendered text cells

because it annoys @Carreau
pull/37/head
MinRK 12 years ago
parent aaa027f503
commit 6038612732

@ -280,7 +280,7 @@ define([
}
// If there are no controls or the cell is a rendered TextCell hide the toolbar.
if (!this.ui_controls_list.length || (this.cell.cell_type != 'code' && this.cell.rendered)) {
if (!this.ui_controls_list.length) {
this.hide();
} else {
this.show();

@ -137,9 +137,6 @@ define([
}
this.refresh();
}
if (this.celltoolbar.ui_controls_list.length) {
this.celltoolbar.show();
}
return cont;
};
@ -180,7 +177,6 @@ define([
*/
TextCell.prototype.set_rendered = function(text) {
this.element.find('div.text_cell_render').html(text);
this.celltoolbar.hide();
};

Loading…
Cancel
Save