Fix bulk comment keyboard shortcuts. Props duck_. fixes #15571

git-svn-id: https://develop.svn.wordpress.org/trunk@16647 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-12-01 16:51:20 +00:00
parent 80c79e5607
commit 277bf53130
2 changed files with 3 additions and 3 deletions

View File

@ -492,14 +492,14 @@ $(document).ready(function(){
return function() {
var scope = $('select[name="action"]');
$('option[value='+value+']', scope).attr('selected', 'selected');
$('#comments-form').submit();
$('#doaction').click();
}
};
$.table_hotkeys(
$('table.widefat'),
['a', 'u', 's', 'd', 'r', 'q', 'z', ['e', edit_comment], ['shift+x', toggle_all],
['shift+a', make_bulk('approve')], ['shift+s', make_bulk('markspam')],
['shift+a', make_bulk('approve')], ['shift+s', make_bulk('spam')],
['shift+d', make_bulk('delete')], ['shift+t', make_bulk('trash')],
['shift+z', make_bulk('untrash')], ['shift+u', make_bulk('unapprove')]],
{ highlight_first: adminCommentsL10n.hotkeys_highlight_first, highlight_last: adminCommentsL10n.hotkeys_highlight_last,

File diff suppressed because one or more lines are too long