From 68aa521291249ee62b16251642c0bfdb41cee035 Mon Sep 17 00:00:00 2001 From: laron Date: Sun, 22 Sep 2013 14:30:52 +0200 Subject: [PATCH] add a withoutPlaylist class to player when it has no playlist --- panikweb_templates/static/js/specifics.js | 4 ++-- panikweb_templates/templates/base.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/panikweb_templates/static/js/specifics.js b/panikweb_templates/static/js/specifics.js index 54ca289..966b4eb 100644 --- a/panikweb_templates/static/js/specifics.js +++ b/panikweb_templates/static/js/specifics.js @@ -267,10 +267,10 @@ $(function() { //doLog(JSON.stringify(self.playlist, null, '\t')); if(self.playlist.length >= 1){ self.element.show(); - $('#Player').addClass('withPlaylist'); + $('#Player').addClass('withPlaylist').removeClass('withoutPlaylist'); }else{ self.element.hide(); - $('#Player').removeClass('withPlaylist'); + $('#Player').removeClass('withPlaylist').addClass('withoutPlaylist'); } } }); diff --git a/panikweb_templates/templates/base.html b/panikweb_templates/templates/base.html index 3f5c891..41aaeaa 100644 --- a/panikweb_templates/templates/base.html +++ b/panikweb_templates/templates/base.html @@ -49,7 +49,7 @@

Radio Panik 105.4 FM

-
+
{% block listen %}{% player %}{% endblock %}
-- 2.39.2