mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
Updating the enter key handler so that the user is redirected to the url of the last link (Edit link) in the related element instead of the first link.
When hitting enter, the expected behavior is to go and edit the content type or part that occurs first in the list.
This commit is contained in:
parent
0ee1e23fa7
commit
ad6abdc6a6
@ -6,7 +6,7 @@
|
||||
if (e.keyCode == 13) {
|
||||
var visibleRows = $("[data-record-text]:visible");
|
||||
if (visibleRows.length > 0) {
|
||||
var editLink = $("a", visibleRows[0]);
|
||||
var editLink = $(".related a:last", visibleRows[0]);
|
||||
location.href = editLink.attr("href");
|
||||
} else {
|
||||
var primaryButton = $("#layout-main .manage .primaryAction");
|
||||
|
Loading…
Reference in New Issue
Block a user