Bug 37192: Add ability to pass data-new_tab to form-submit.js and open in new tab

Signed-off-by: Phil Ringnalda <phil@chetcolibrary.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Lucas Gass 2024-07-11 16:11:43 +00:00 committed by Katrin Fischer
parent 72fd2c580d
commit 4c244df82a
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 3 additions and 0 deletions

View File

@ -30,6 +30,9 @@ $(document).ready(function () {
})
);
});
if (form_data.new_tab) {
the_form.attr("target", "_blank");
}
$("body").append(the_form);
the_form.submit();
});