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
1 changed files with 4 additions and 0 deletions

View File

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