From 3a12e9a3df70d894f7d51d085e69c80a858cc7e9 Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Thu, 2 Jul 2015 11:29:53 +0200 Subject: [PATCH] feature #3748: Hide check_all for onlyOneCheck and checkboxes for selectable tables --- src/sunstone/public/app/utils/tab-datatable.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/sunstone/public/app/utils/tab-datatable.js b/src/sunstone/public/app/utils/tab-datatable.js index a9b1117470..27c85c45b7 100644 --- a/src/sunstone/public/app/utils/tab-datatable.js +++ b/src/sunstone/public/app/utils/tab-datatable.js @@ -178,6 +178,7 @@ define(function(require) { if (this.conf.oneSelection == true) { this.onlyOneCheckboxListener(); + $(".check_all", that.dataTable).hide(); } if (this.conf.info) { @@ -189,11 +190,7 @@ define(function(require) { } if (this.conf.select) { - if (opts && opts.selectOptions) { - $.extend(this.selectOptions, opts.selectOptions); - } - - this.initSelectResourceTableSelect(); + that.dataTable.fnSetColumnVis(0, false); } }