提交 480fa669 编写于 作者: T tfennelly

Tab section show/hide via CSS Vs JavaScript

This will allow us to apply different behaviour for scrollspy show/hide, leaving the common JavaScript the same
上级 37da0412
......@@ -94,7 +94,7 @@ ConfigSection.prototype.activate = function() {
ConfigSection.prototype.markRowsAsActive = function() {
var rows = this.getRows();
for (var i = 0; i < rows.length; i++) {
rows[i].addClass('active').show();
rows[i].addClass('active');
}
for (var ii = 0; ii < this.subSections.length; ii++) {
this.subSections[ii].markRowsAsActive();
......
......@@ -266,7 +266,6 @@ ConfigTableMetaData.prototype.hideSection = function() {
$('.config-section-activator.active', this.activatorContainer).removeClass('active');
topRows.filter('.active').removeClass('active');
topRows.hide();
};
ConfigTableMetaData.prototype.onShowSection = function(listener) {
......
......@@ -295,6 +295,14 @@
}
}
table.job-config > tbody > tr {
display: none;
}
table.job-config > tbody > tr.active {
display: table-row;
}
span.highlight {
background-color: #ffff00;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册