summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2015-04-24 18:02:09 (GMT)
committerChristian Pointner <equinox@helsinki.at>2015-04-24 18:02:09 (GMT)
commitf53ae9263c55d0c4f447b86fbf8b31d3bbd3beb7 (patch)
tree7bd4de36c6395170c6792abfe28517a6c43a9192 /www/js
parentc4458b541e00fdc31cad3ff272b8ad6e0fb1d234 (diff)
added jingles app
Diffstat (limited to 'www/js')
-rw-r--r--www/js/apps.js23
-rw-r--r--www/js/jingles.js5
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() {
+}