Added hotkeys for selecting posts in upload form
This commit is contained in:
parent
37ff4705a6
commit
9c26087b46
1 changed files with 14 additions and 0 deletions
|
@ -76,6 +76,20 @@ function bindUrlHandlerEvents()
|
||||||
|
|
||||||
function bindPostTableOperations()
|
function bindPostTableOperations()
|
||||||
{
|
{
|
||||||
|
Mousetrap.bind('a', function()
|
||||||
|
{
|
||||||
|
var prevPost = $('#posts tbody tr.selected:eq(0)').prev().data('post');
|
||||||
|
if (prevPost)
|
||||||
|
selectPostTableRow(prevPost);
|
||||||
|
}, 'keyup');
|
||||||
|
|
||||||
|
Mousetrap.bind('d', function()
|
||||||
|
{
|
||||||
|
var nextPost = $('#posts tbody tr.selected:eq(0)').next().data('post');
|
||||||
|
if (nextPost)
|
||||||
|
selectPostTableRow(nextPost);
|
||||||
|
}, 'keyup');
|
||||||
|
|
||||||
$('#upload-step2').find('.remove').click(function(e)
|
$('#upload-step2').find('.remove').click(function(e)
|
||||||
{
|
{
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
Loading…
Reference in a new issue