Lars #210

Merged
11291680 merged 15 commits from lars into master 2017-02-03 11:21:14 +01:00
Showing only changes of commit afb45d6709 - Show all commits

View File

@@ -83,6 +83,21 @@ $(window).on("load", function() {
loadMorePosts(userID, groupID, postAmount, postLimit);
}
};
$(document).keyup(function(e) {
if (e.keyCode == 27) {
closeModal();
}
});
$('.modal').click(function() {
closeModal();
});
$('.modal-content').click(function(event){
event.stopPropagation();
});
});
function closeModal() {