From 057fbbc0f4c65d61f21a3808c8a3e491fea1d831 Mon Sep 17 00:00:00 2001 From: Graham Hayes Date: Mon, 16 May 2016 15:22:37 +0100 Subject: [PATCH] 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 --- os_api_ref/assets/api-site.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os_api_ref/assets/api-site.js b/os_api_ref/assets/api-site.js index b406f07..596fe67 100644 --- a/os_api_ref/assets/api-site.js +++ b/os_api_ref/assets/api-site.js @@ -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(); }