Looking at the mockup at http://openstack-homepage.bitballoon.com/docs/book, it seems that TOC lists are in a div with class "docs-sidebar-toc". If this is true, rather than deleting the above Javascript line, a better solution might be amending it as follows:
$('div.docs-sidebar-toc ol > li:has(ul)').addClass('docs-has-sub');
Looking at the mockup at http:// openstack- homepage. bitballoon. com/docs/ book, it seems that TOC lists are in a div with class "docs-sidebar-toc". If this is true, rather than deleting the above Javascript line, a better solution might be amending it as follows:
$(' div.docs- sidebar- toc ol > li:has( ul)').addClass( 'docs-has- sub');