diff --git a/js/theme_option.js b/js/theme_option.js index 56e7de0..086e923 100644 --- a/js/theme_option.js +++ b/js/theme_option.js @@ -140,7 +140,10 @@ function reOrganizeTemplates() { // for nin's templating // Close new post prompt with esc key $(document).keyup(function(e) { - if (e.keyCode == 27) {$('.mini-profile .post-area').removeClass('display');} + if (e.keyCode == 27) { + $('.mini-profile .post-area').removeClass('display'); + closeModal(); + } }); function reAppendModules() { // avoid w1200 things @@ -197,4 +200,4 @@ function openModal(modal) { } } return modal; -} \ No newline at end of file +}