Improvements to keyboard shorcuts

This commit is contained in:
Hillel Coren 2017-06-28 18:47:57 +03:00
parent a61a75b007
commit cff5342a02

View File

@ -221,7 +221,10 @@
@for ($i = 1; $i <= 10; $i++)
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
});