From: Luigi Pinca Date: Mon, 9 Dec 2013 14:42:19 +0000 (+0100) Subject: removed some redundant code X-Git-Url: https://git.saalbach.dev/?a=commitdiff_plain;h=c0305695faf7774fbde161cdb9e1d00580c65b49;p=binbsis50.git removed some redundant code --- diff --git a/public/js/app.js b/public/js/app.js index 66da796..4606158 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -968,12 +968,7 @@ setVariables(); DOM.modal.modal({keyboard:false, show:false, backdrop:'static'}); DOM.togglechat.click(hideChat); - // Prevent Firefox from closing the websocket connection if the ESC key is pressed - $(document).keydown(function(e) { - if (e.keyCode === 27) { - e.preventDefault(); - } - }); + primus = Primus.connect(uri, {'strategy': 'none'}); primus.on('open', function() { jplayer = $('#player').jPlayer({ diff --git a/public/js/home.js b/public/js/home.js index 3a94ad3..d936348 100644 --- a/public/js/home.js +++ b/public/js/home.js @@ -1,10 +1,4 @@ (function() { - // Prevent Firefox from closing the websocket connection if the ESC key is pressed - $(document).keydown(function(e) { - if (e.keyCode === 27) { - e.preventDefault(); - } - }); $.get('/artworks', function(data) { $('.thumbnail').each(function() { var urls = data[$(this).attr('href')];