From 879c66e1f0a2cf4ac3ce5964afd683e6f2f294f9 Mon Sep 17 00:00:00 2001
From: mattab <matthieu.aubry@gmail.com>
Date: Fri, 11 Apr 2014 17:49:37 +1200
Subject: [PATCH] Fix regression that screenshot tests found

---
 plugins/CoreHome/javascripts/dataTable.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/CoreHome/javascripts/dataTable.js b/plugins/CoreHome/javascripts/dataTable.js
index 89dd8ca811..bd13cdd548 100644
--- a/plugins/CoreHome/javascripts/dataTable.js
+++ b/plugins/CoreHome/javascripts/dataTable.js
@@ -1066,13 +1066,13 @@ $.extend(DataTable.prototype, UIControl.prototype, {
         if ((typeof self.numberOfSubtables == 'undefined' || self.numberOfSubtables == 0)
             && (typeof self.param.flat == 'undefined' || self.param.flat != 1)) {
             // if there are no subtables, remove the flatten action
-            $('.dataTableFlatten', domElem).parent().remove();
+            $('div.tableConfiguration', domElem).parent().remove();
         }
 
         var ul = $('div.tableConfiguration ul.tableConfigurationCog', domElem);
         function hideConfigurationIcon() {
             // hide the icon when there are no actions available or we're not in a table view
-            $('div.tableConfiguration ul.tableConfigurationCog', domElem).hide();
+            $('div.tableConfiguration ul.tableConfigurationCog', domElem).remove();
         }
 
         if (ul.find('li').size() == 0) {
-- 
GitLab