Browse Source

add keybpoard shortcut ESC to close new post modal

nin-v2
myleneb 9 years ago
parent
commit
b1a9c6d8ed
  1. 7
      js/theme_option.js

7
js/theme_option.js

@ -128,6 +128,13 @@ function reOrganizeTemplates() { // for nin's templating
}); });
} }
$(document).keyup(function(e) {
if (e.keyCode == 27) {$('.mini-profile .post-area').removeClass('display');}
});
function reAppendModules() { // avoid w1200 things function reAppendModules() { // avoid w1200 things
$('.module.toptrends').detach().appendTo($('.dashboard.right')); $('.module.toptrends').detach().appendTo($('.dashboard.right'));
$('.module.who-to-follow').detach().appendTo($('.dashboard.right')); $('.module.who-to-follow').detach().appendTo($('.dashboard.right'));

Loading…
Cancel
Save