summaryrefslogtreecommitdiff
path: root/js/apps.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/apps.js')
-rw-r--r--js/apps.js60
1 files changed, 30 insertions, 30 deletions
diff --git a/js/apps.js b/js/apps.js
index c852cd4..05aff86 100644
--- a/js/apps.js
+++ b/js/apps.js
@@ -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;
+}