Skip to content
Snippets Groups Projects
Commit b7f27737 authored by Robert Lange's avatar Robert Lange
Browse files

refs #20378 [finc] restore focus after using of bulk-action buttons

* set origin in lightbox on target
* TODO: print button, remove data-lightbox-ignore?
parent 7dc7c047
Branches
Tags
No related merge requests found
...@@ -327,4 +327,9 @@ $(document).on('keyup', '.dropdown-abort', function(e) { ...@@ -327,4 +327,9 @@ $(document).on('keyup', '.dropdown-abort', function(e) {
toggle.dropdown("toggle"); toggle.dropdown("toggle");
} }
} }
});
/* restore focus after closing of lightbox */
$(document).on('click', '.bulkActionButtons input', function(e) {
VuFind.lightbox.setOrigin(e.target);
}); });
\ No newline at end of file
...@@ -327,4 +327,9 @@ $(document).on('keyup', '.dropdown-abort', function(e) { ...@@ -327,4 +327,9 @@ $(document).on('keyup', '.dropdown-abort', function(e) {
toggle.dropdown("toggle"); toggle.dropdown("toggle");
} }
} }
});
/* restore focus after closing of lightbox */
$(document).on('click', '.bulkActionButtons input', function(e) {
VuFind.lightbox.setOrigin(e.target);
}); });
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment