diff options
author | Christian Pointner <equinox@helsinki.at> | 2014-09-20 22:15:54 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2014-09-20 22:15:54 (GMT) |
commit | e15da8a3eb7cd247f659cdf6dabacd4f7176b6b7 (patch) | |
tree | 801ffcdde9d43da7290163e92af04b8529d6f5e2 /js/apps.js | |
parent | 07cdbb3c6b86a783f23f70a92f90ddf97e597b2c (diff) |
whitespace cleanup
Diffstat (limited to 'js/apps.js')
-rw-r--r-- | js/apps.js | 60 |
1 files changed, 30 insertions, 30 deletions
@@ -1,34 +1,34 @@ - var apps_current; +var apps_current; - function apps_select(app) { - switch(app) { - case "musicpools": - $('#app-shows').hide(); - $('#nav-btn-shows').removeClass('active'); - $('#app-musicpools').show(); - $('#nav-btn-musicpools').addClass('active'); - musicpools_init(); - break; - default: - $('#app-shows').show(); - $('#nav-btn-shows').addClass('active'); - $('#app-musicpools').hide(); - $('#nav-btn-musicpools').removeClass('active'); - apps_current = 'shows'; - shows_init(); - } - sessionStorage.setItem("apps_current", apps_current); - } +function apps_select(app) { + switch(app) { + case "musicpools": + $('#app-shows').hide(); + $('#nav-btn-shows').removeClass('active'); + $('#app-musicpools').show(); + $('#nav-btn-musicpools').addClass('active'); + musicpools_init(); + break; + default: + $('#app-shows').show(); + $('#nav-btn-shows').addClass('active'); + $('#app-musicpools').hide(); + $('#nav-btn-musicpools').removeClass('active'); + apps_current = 'shows'; + shows_init(); + } + sessionStorage.setItem("apps_current", apps_current); +} - function apps_init() { - apps_current = sessionStorage.getItem("apps_current"); - apps_select(apps_current); - } +function apps_init() { + apps_current = sessionStorage.getItem("apps_current"); + apps_select(apps_current); +} - function apps_cleanup() { - shows_cleanup(); - musicpools_cleanup(); +function apps_cleanup() { + shows_cleanup(); + musicpools_cleanup(); - sessionStorage.removeItem("apps_current"); - delete apps_current; - } + sessionStorage.removeItem("apps_current"); + delete apps_current; +} |