collapsible.js: Don't enforce data-visible-rows for tables and lists

This commit is contained in:
Johannes Meyer 2019-07-25 10:40:29 +02:00
parent 2179518904
commit 74cb0ef3c9

View File

@ -143,6 +143,10 @@
* @returns {string} * @returns {string}
*/ */
Collapsible.prototype.getRowSelector = function($collapsible) { Collapsible.prototype.getRowSelector = function($collapsible) {
if (!! $collapsible.data('visibleHeight')) {
return '';
}
if ($collapsible.is('table')) { if ($collapsible.is('table')) {
return '> tbody > tr'; return '> tbody > tr';
} else if ($collapsible.is('ul, ol')) { } else if ($collapsible.is('ul, ol')) {