Added config-table-top-row class to the top level <tr>s in the config table

This commit is contained in:
tfennelly committed 2016-03-16 14:24:05 +00:00
1 parent 2b0b537f4b
commit 582b93e080
2 files changed
+12 -12

No files matched your search

+9 -11
View File
@@ -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;
}
}
@@ -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() {