summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
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();
};