almost everything for #2335

This commit is contained in:
Julian Lam
2014-10-31 13:22:42 -04:00
parent 61aaff025b
commit b91d39a0d3
8 changed files with 158 additions and 14 deletions

View File

@@ -89,6 +89,15 @@ var admin = {};
socket.emit('admin.restart');
});
Mousetrap.bind('ctrl+shift+a d', function() {
var tid = ajaxify.variables.get('topic_id'),
cid = ajaxify.variables.get('category_id');
if (tid && cid) {
socket.emit('topics.delete', { tids: [tid], cid: cid });
}
});
Mousetrap.bind('/', function(e) {
$('#acp-search input').focus();