Fixed issue with event trying to fire without existing

This commit is contained in:
Kasper Rynning-Tønnesen
2017-05-05 16:45:37 +02:00
parent 611bee8a99
commit b9aa04f360
3 changed files with 16 additions and 15 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+2 -1
View File
@@ -108,6 +108,7 @@ try{
navigator.serviceWorker.getRegistration('/').then(function(registration) {
registration.unregister();
});*/
} catch(e) {}
$().ready(function(){
@@ -807,7 +808,7 @@ function seekToClick(e){
}
}
$(document).keyup(function(e) {
$(document).keyup(function(event) {
if(event.keyCode == 27){
$("#results").html("");
if($("#search-wrapper").length != 0 && !Helper.contains($("#search-wrapper").attr("class").split(" "), "hide"))