Bug 528935 Table: Checkbox of checkable table disappearing
The checkboxes of a checkable table are now shown even after reloading
the column default settings, if they were previously shown.
219980
Change-Id: Ice9d062523b68a4f5f55eafa464a9a9bab582ac8
Signed-off-by: Jeremie Miserez <jeremie.miserez@bsi-software.com>
Reviewed-on: https://git.eclipse.org/r/114680
Tested-by: Hudson CI
Reviewed-by: Claudio Guglielmo <claudio.guglielmo@bsiag.com>
diff --git a/org.eclipse.scout.rt.ui.html/src/main/js/scout/table/Table.js b/org.eclipse.scout.rt.ui.html/src/main/js/scout/table/Table.js
index e588277..5b4d1da 100644
--- a/org.eclipse.scout.rt.ui.html/src/main/js/scout/table/Table.js
+++ b/org.eclipse.scout.rt.ui.html/src/main/js/scout/table/Table.js
@@ -160,7 +160,9 @@
if (this.rowIconVisible) {
this._insertRowIconColumn();
}
- this._setCheckable(this.checkable);
+ if (this.checkable && this.checkableStyle === scout.Table.CheckableStyle.CHECKBOX) {
+ this._insertBooleanColumn();
+ }
// Sync head and tail sort columns
this._setHeadAndTailSortColumns();