don't hide cell toolbar on rendered text cells

because it annoys @Carreau
This commit is contained in:
MinRK 2014-09-03 17:08:55 -07:00
parent aaa027f503
commit 6038612732
2 changed files with 1 additions and 5 deletions

View File

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

View File

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