Fix bulk comment keyboard shortcuts. Props duck_. fixes #15571
git-svn-id: http://svn.automattic.com/wordpress/trunk@16647 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e8471af340
commit
b9fe49b63d
|
@ -492,14 +492,14 @@ $(document).ready(function(){
|
||||||
return function() {
|
return function() {
|
||||||
var scope = $('select[name="action"]');
|
var scope = $('select[name="action"]');
|
||||||
$('option[value='+value+']', scope).attr('selected', 'selected');
|
$('option[value='+value+']', scope).attr('selected', 'selected');
|
||||||
$('#comments-form').submit();
|
$('#doaction').click();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
$.table_hotkeys(
|
$.table_hotkeys(
|
||||||
$('table.widefat'),
|
$('table.widefat'),
|
||||||
['a', 'u', 's', 'd', 'r', 'q', 'z', ['e', edit_comment], ['shift+x', toggle_all],
|
['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+d', make_bulk('delete')], ['shift+t', make_bulk('trash')],
|
||||||
['shift+z', make_bulk('untrash')], ['shift+u', make_bulk('unapprove')]],
|
['shift+z', make_bulk('untrash')], ['shift+u', make_bulk('unapprove')]],
|
||||||
{ highlight_first: adminCommentsL10n.hotkeys_highlight_first, highlight_last: adminCommentsL10n.hotkeys_highlight_last,
|
{ highlight_first: adminCommentsL10n.hotkeys_highlight_first, highlight_last: adminCommentsL10n.hotkeys_highlight_last,
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue