summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www/js/apps.js60
1 files changed, 30 insertions, 30 deletions
diff --git a/www/js/apps.js b/www/js/apps.js
index af5cd6d..a351925 100644
--- a/www/js/apps.js
+++ b/www/js/apps.js
@@ -22,42 +22,42 @@
var apps_current;
function apps_select(app) {
- switch(app) {
- case "musicpools":
- $('#app-shows').hide();
- $('#nav-btn-shows').removeClass('active');
- $('#app-jingles').hide();
- $('#nav-btn-jingles').removeClass('active');
+ switch(app) {
+ case "musicpools":
+ $('#app-shows').hide();
+ $('#nav-btn-shows').removeClass('active');
+ $('#app-jingles').hide();
+ $('#nav-btn-jingles').removeClass('active');
- $('#app-musicpools').show();
- $('#nav-btn-musicpools').addClass('active');
+ $('#app-musicpools').show();
+ $('#nav-btn-musicpools').addClass('active');
- apps_current = app;
- musicpools_init();
- break;
- case "jingles":
- $('#app-shows').hide();
- $('#nav-btn-shows').removeClass('active');
- $('#app-musicpools').hide();
- $('#nav-btn-musicpools').removeClass('active');
+ apps_current = app;
+ musicpools_init();
+ break;
+ case "jingles":
+ $('#app-shows').hide();
+ $('#nav-btn-shows').removeClass('active');
+ $('#app-musicpools').hide();
+ $('#nav-btn-musicpools').removeClass('active');
- $('#app-jingles').show();
- $('#nav-btn-jingles').addClass('active');
+ $('#app-jingles').show();
+ $('#nav-btn-jingles').addClass('active');
- apps_current = app;
- jingles_init();
- break;
- default:
- $('#app-jingles').hide();
- $('#nav-btn-jingles').removeClass('active');
- $('#app-musicpools').hide();
- $('#nav-btn-musicpools').removeClass('active');
+ apps_current = app;
+ jingles_init();
+ break;
+ default:
+ $('#app-jingles').hide();
+ $('#nav-btn-jingles').removeClass('active');
+ $('#app-musicpools').hide();
+ $('#nav-btn-musicpools').removeClass('active');
- $('#app-shows').show();
- $('#nav-btn-shows').addClass('active');
+ $('#app-shows').show();
+ $('#nav-btn-shows').addClass('active');
- apps_current = app = 'shows';
- shows_init();
+ apps_current = app = 'shows';
+ shows_init();
}
if (locationHashValue() !== app) {
history.pushState(null, null, '/#' + app + '/');