diff options
Diffstat (limited to 'www/js')
-rw-r--r-- | www/js/apps.js | 23 | ||||
-rw-r--r-- | www/js/jingles.js | 5 |
2 files changed, 26 insertions, 2 deletions
diff --git a/www/js/apps.js b/www/js/apps.js index 12c9f76..69f55f1 100644 --- a/www/js/apps.js +++ b/www/js/apps.js @@ -5,15 +5,33 @@ function apps_select(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'); 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'); + + musicpools_init(); + break; default: - $('#app-shows').show(); - $('#nav-btn-shows').addClass('active'); + $('#app-jingles').hide(); + $('#nav-btn-jingles').removeClass('active'); $('#app-musicpools').hide(); $('#nav-btn-musicpools').removeClass('active'); + + $('#app-shows').show(); + $('#nav-btn-shows').addClass('active'); + apps_current = 'shows'; shows_init(); } @@ -27,6 +45,7 @@ function apps_init() { function apps_cleanup() { shows_cleanup(); + jingles_cleanup(); musicpools_cleanup(); sessionStorage.removeItem("apps_current"); diff --git a/www/js/jingles.js b/www/js/jingles.js new file mode 100644 index 0000000..7034df9 --- /dev/null +++ b/www/js/jingles.js @@ -0,0 +1,5 @@ +function jingles_init() { +} + +function jingles_cleanup() { +} |