collapsible.js: Rename `height` to `visible-height`

This commit is contained in:
Johannes Meyer 2019-06-07 08:13:36 +02:00
parent 1ae1dc387f
commit 6f28a5c3e1
1 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@
this.icinga = icinga;
this.defaultVisibleRows = 2;
this.defaultHeight = 36;
this.defaultVisibleHeight = 36;
this.collapsibleStates = this.getStateFromStorage();
};
@ -108,7 +108,7 @@
if (!! rowSelector) {
return $(rowSelector, $collapsible).length > ($collapsible.data('visibleRows') || this.defaultVisibleRows);
} else {
return $collapsible.innerHeight() > ($collapsible.data('height') || this.defaultHeight);
return $collapsible.innerHeight() > ($collapsible.data('visibleHeight') || this.defaultVisibleHeight);
}
};
@ -131,7 +131,7 @@
$collapsible.css({display: 'block', height: totalHeight});
} else {
$collapsible.css({display: 'block', height: $collapsible.data('height') || this.defaultHeight});
$collapsible.css({display: 'block', height: $collapsible.data('visibleHeight') || this.defaultVisibleHeight});
}
};