Checking if [+] was found fixes the table view issue:
<script>
function autoExpand(){
// console.log("autoExpand started");
var found = false;
$(document).ready(function() {
$(".jsexpands").each(function() {
if($(this).html() == '[+]') {
found=true;
$(this)[0].click();
}
});
});
if (found) {setTimeout(function(){ $('.modalize-table-overlay').click(); }, 500);}
//console.log("autoExpand complete");
}
// select the target node
var target = document.body;
// create an observer instance
var observer = new MutationObserver(function(mutations) {
autoExpand();
});
// configuration of the observer:
var config = { attributes: true, childList: true, characterData: true, subtree:true};
// pass in the target node, as well as the observer options
observer.observe(target, config);
</script>
... View more