mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Improvements to keyboard shorcuts
This commit is contained in:
parent
a61a75b007
commit
cff5342a02
@ -221,7 +221,10 @@
|
|||||||
|
|
||||||
@for ($i = 1; $i <= 10; $i++)
|
@for ($i = 1; $i <= 10; $i++)
|
||||||
Mousetrap.bind('g {{ $i }}', function(e) {
|
Mousetrap.bind('g {{ $i }}', function(e) {
|
||||||
location.href = $('#DataTables_Table_0').find('tr:nth-child({{ $i }})').find('a').attr('href');
|
var link = $('.data-table').find('tr:nth-child({{ $i }})').find('a').attr('href');
|
||||||
|
if (link) {
|
||||||
|
location.href = link;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
@endfor
|
@endfor
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user