From 582b93e080f2aada98f4db1edfaa6ae5da3a2bb7 Mon Sep 17 00:00:00 2001 From: tfennelly Date: Tue, 15 Mar 2016 10:22:51 +0000 Subject: [PATCH] Added config-table-top-row class to the top level s in the config table --- war/src/main/js/config-tabbar.less | 20 +++++++++---------- .../config/model/ConfigTableMetaData.js | 4 +++- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/war/src/main/js/config-tabbar.less b/war/src/main/js/config-tabbar.less index 630ab59e3b..2ab6a24396 100644 --- a/war/src/main/js/config-tabbar.less +++ b/war/src/main/js/config-tabbar.less @@ -19,17 +19,15 @@ * ---------------------------------------------------------------------------------------- */ -#jenkins { - .jenkins-config { - - // For a tabbar, the default is to hide all of the table rows. - .config-table.tabbed > tbody > tr { - display: none; - } - // ... and then show them when given the "active" class. - .config-table.tabbed > tbody > tr.active { - display: table-row; - } +.jenkins-config { + // For a tabbar, the default is to hide all of the table rows. + tr.config-table-top-row { + display: none; } + // ... and then show them when given the "active" class. + tr.config-table-top-row.active { + display: table-row; + } + } \ No newline at end of file diff --git a/war/src/main/js/widgets/config/model/ConfigTableMetaData.js b/war/src/main/js/widgets/config/model/ConfigTableMetaData.js index 9af7c24969..f39fd386ee 100644 --- a/war/src/main/js/widgets/config/model/ConfigTableMetaData.js +++ b/war/src/main/js/widgets/config/model/ConfigTableMetaData.js @@ -100,7 +100,9 @@ function ConfigTableMetaData(configForm, configTable) { } ConfigTableMetaData.prototype.getTopRows = function() { - return this.configTableBody.children('tr'); + var topRows = this.configTableBody.children('tr'); + topRows.addClass('config-table-top-row'); + return topRows; }; ConfigTableMetaData.prototype.getFirstRow = function() {