Remove errant ";" from the "expand_all" detection

This caused the $('#expand-all').click(); function
to be called regardless of "?expand_all" being in the query string

Change-Id: I83723a640209294ac656099f92fb8ad160a7e445
This commit is contained in:
Graham Hayes 2016-05-16 15:22:37 +01:00
parent aefb125f2c
commit 057fbbc0f4
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@
// if ?expand_all is in the query string, then expand all
// sections. This is useful for linking to nested elements, which
// only work if that element is expanded.
if (window.location.search.substring(1).indexOf("expand_all") > -1); {
if (window.location.search.substring(1).indexOf("expand_all") > -1) {
$('#expand-all').click();
}