]> git.0d.be Git - panikweb.git/blobdiff - panikweb_templates/static/js/specifics.js
chat: hide audio player on mobile
[panikweb.git] / panikweb_templates / static / js / specifics.js
index 8107709053782dda71d6b547f2bdc868d9a13d7c..e925373702a8a226513598082b68dd5cabb36be6 100644 (file)
@@ -540,6 +540,7 @@ $(function() {
 
                 /* CHAT */
                 if ($('#chat').length) {
+                    $('#player').hide();
                     var moderator = ($('#panikdb').length > 0);
                     var $msg = $('input#msg');
                     var $send = $('button#send');
@@ -684,6 +685,8 @@ $(function() {
                         if (connection) { connection.disconnect(); }
                     });
 
+                } else {
+                    $('#player').show();
                 }
        }
        init();