summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
authorPeter Grassberger <petertheone@gmail.com>2016-01-20 23:08:33 (GMT)
committerPeter Grassberger <petertheone@gmail.com>2016-01-20 23:08:33 (GMT)
commita9224f7dc48420330341b08b3e387d571d5e9ab4 (patch)
tree76ffe9edecbf94fc21d1d600fc921bc5695587c3 /www/js
parentd14e1c29570092fb55699534b5401bb710121f4e (diff)
fix musicgrid dow bug, add missing hours, style fullWidth
Diffstat (limited to 'www/js')
-rw-r--r--www/js/apps.js3
-rw-r--r--www/js/musicpools.js3
2 files changed, 5 insertions, 1 deletions
diff --git a/www/js/apps.js b/www/js/apps.js
index 50e6ee5..4f71a9c 100644
--- a/www/js/apps.js
+++ b/www/js/apps.js
@@ -23,6 +23,8 @@
var apps_current;
function apps_select(app) {
+ $('.container').removeClass('fullWidth');
+
switch(app) {
case "musicgrid":
$('#app-shows').hide();
@@ -32,6 +34,7 @@ function apps_select(app) {
$('#app-musicpools').hide();
$('#nav-btn-musicpools').removeClass('active');
+ $('.container').addClass('fullWidth');
$('#app-musicgrid').show();
$('#nav-btn-musicgrid').addClass('active');
diff --git a/www/js/musicpools.js b/www/js/musicpools.js
index e2eea41..6b46981 100644
--- a/www/js/musicpools.js
+++ b/www/js/musicpools.js
@@ -38,7 +38,8 @@ function musicpools_cleanup() {
// this and jinglegroups are basicly the same
var Musicpools = function() {
// todo: get current Pool Id from session like shows?
- this.currentPoolId = null;
+ this.currentPoolId = sessionStorage.getItem("currentPoolId");
+ this.currentPoolId = this.currentPoolId === null ? 0 : this.currentPoolId;
this.musicpools = [];
this.fetch();
};