Bug 14322: (follow-up) make shareable link load results immediately

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Brendan Lawlor 2024-07-22 14:20:46 +00:00 committed by Katrin Fischer
parent 0655bf1a3c
commit 90618a5f49
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 6 additions and 0 deletions

View File

@ -826,6 +826,12 @@
selectField.style.minWidth = '320px';
$(selectField).select2();
});
let urlParams = new URLSearchParams(window.location.search)
if(urlParams.get('format') === 'shareable' ) {
submitForm($('#itemsearchform'));
$("#item-search-block").hide();
}
});
</script>
[% END %]