提交 0aeb610a 编写于 作者: G gusreiber

fixing filter

上级 ba1cf047
......@@ -173,7 +173,6 @@ ConfigSection.prototype.gatherRowGroups = function(rows) {
for (var i = 0; i < rows.length; i++) {
var row = rows[i];
if (row.hasClass('row-group-start')) {
var newRowGroup = new ConfigRowGrouping(row, rowGroupContainer);
if (rowGroupContainer) {
......@@ -182,6 +181,11 @@ ConfigSection.prototype.gatherRowGroups = function(rows) {
rowGroupContainer = newRowGroup;
newRowGroup.findToggleWidget(row);
} else {
//FIXME: I am not sure how rowGroupContainer can be undefined, but I am seeing the error, so somethings not right
if(!rowGroupContainer){
console.log('missing rowGroupContainer');
return false;
}
if (row.hasClass('row-group-end')) {
rowGroupContainer.endRow = row;
rowGroupContainer = rowGroupContainer.parentRowGroupContainer; // pop back off the "stack"
......
......@@ -237,7 +237,7 @@ ConfigTableMetaData.prototype.showSection = function(section) {
if(!section) return;
var $ = this.$;
var $header = $(section.headerRow);
var $header = $(section.headerRow).show();
var scrollTop = $header.offset().top - ($('#main-panel .jenkins-config-widgets').outerHeight() + 15);
$('html,body').animate({
......@@ -248,12 +248,8 @@ ConfigTableMetaData.prototype.showSection = function(section) {
section.activator.addClass('active');
},510);
if (section) {
/*
var topRows = this.getTopRows();
// Deactivate currently active section ...
this.deactivateActiveSection();
// Active the specified section
section.activator.addClass('active');
section.markRowsAsActive();
......@@ -265,7 +261,6 @@ ConfigTableMetaData.prototype.showSection = function(section) {
section.highlightText(this.findInput.val());
fireListeners(this.showListeners, section);
*/
}
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册