]> git.0d.be Git - panikweb.git/commitdiff
chat: hide audio player on mobile
authorFrédéric Péters <fpeters@0d.be>
Thu, 20 Apr 2017 05:35:36 +0000 (07:35 +0200)
committerFrédéric Péters <fpeters@0d.be>
Thu, 20 Apr 2017 05:35:36 +0000 (07:35 +0200)
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();