]> git.example.dev Git - binbsis50.git/commitdiff
removed some redundant code
authorLuigi Pinca <luigipinca@gmail.com>
Mon, 9 Dec 2013 14:42:19 +0000 (15:42 +0100)
committerLuigi Pinca <luigipinca@gmail.com>
Mon, 9 Dec 2013 14:42:19 +0000 (15:42 +0100)
public/js/app.js
public/js/home.js

index 66da7966b26a6010e1f55e0bbb6525b7ff2fba38..4606158dfafadc2aa73e99567879afa95bef204f 100644 (file)
   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({
index 3a94ad397b17bf30457d1e099e176e7c591d5ef6..d93634830e5b3fcae98675d89deb8b48965b5620 100644 (file)
@@ -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')];