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>
(cherry picked from commit 4c244df82a)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Lucas Gass 2024-07-11 16:11:43 +00:00
parent 4249454095
commit 61dd963360
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();
});