Bugzilla – Attachment 180669 Details for
Bug 39567
Move form-submit js into js includes files
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39567: Move form-submit JS into global js
Bug-39567-Move-form-submit-JS-into-global-js.patch (text/plain), 20.83 KB, created by
Emily Lamancusa (emlam)
on 2025-04-04 18:18:08 UTC
(
hide
)
Description:
Bug 39567: Move form-submit JS into global js
Filename:
MIME Type:
Creator:
Emily Lamancusa (emlam)
Created:
2025-04-04 18:18:08 UTC
Size:
20.83 KB
patch
obsolete
>From 17054c9f12b6deee340b5bc0ce1d4e524d70f607 Mon Sep 17 00:00:00 2001 >From: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov> >Date: Fri, 4 Apr 2025 13:25:43 -0400 >Subject: [PATCH] Bug 39567: Move form-submit JS into global js > >To test: >1. Apply patch >2. Clear browser cache >3. git grep "form-submit.js" >--> Confirm that all imports of the form-submit.js asset have been > removed, and the only results are the comment in global.js and > staff-global.js > >4. Test some of the following buttons and confirm they work as expected > (all buttons except the first are in the staff interface): > - OPAC > Account page > Renew a checkout > - Bib record > Holds > Revert transit/waiting status on a hold > - Acquisitions > Basket > Create EDIFACT order > - Acquisitions > Invoices > detail for a specific invoice > Delete > - Acquisitions > Invoices > perform actions on invoices using the > action drop-down > - Acquisitions > Invoices > open/close invoices by selecting the > checkboxes > - Administration > Additional fields > Delete an additional field > - Administration > Background jobs > Cancel a background job > - Edit an item > scroll up > Actions drop-down > Print label > - Cataloging > Label creator > Manage label batches > Edit a batch > > Delete batch > - Cataloging > Label creator > Manage label batches > Delete a batch > - Patron account > holds > delete a hold > - Tools > Patron lists > delete a list from the Actions drop-down > - Reports > Saved reports > Preview SQL on a report > Delete > - Reports > Saved reports > Delete a report from the actions drop-down > - Rotating collections > Delete a collection from the actions drop-down > - Stock rotations > move item to the next stage > - Stock rotations > remove item from a rota > - Stock rotations > Add/remove "In demand" > - More > Lists > edit a specific list > Edit drop-down > Delete >--- > .../prog/en/includes/holds_table.inc | 3 -- > .../prog/en/modules/acqui/basket.tt | 1 - > .../prog/en/modules/acqui/invoice.tt | 1 - > .../prog/en/modules/acqui/invoices.tt | 1 - > .../en/modules/admin/additional-fields.tt | 1 - > .../prog/en/modules/admin/background_jobs.tt | 1 - > .../en/modules/admin/ill_batch_statuses.tt | 1 - > .../prog/en/modules/cataloguing/additem.tt | 1 - > .../prog/en/modules/circ/circulation.tt | 1 - > .../en/modules/labels/label-edit-batch.tt | 1 - > .../prog/en/modules/labels/label-manage.tt | 1 - > .../prog/en/modules/members/moremember.tt | 1 - > .../prog/en/modules/patron_lists/lists.tt | 1 - > .../modules/reports/guided_reports_start.tt | 1 - > .../prog/en/modules/reserve/request.tt | 1 - > .../rotatingCollections.tt | 1 - > .../prog/en/modules/tools/stockrotation.tt | 1 - > .../prog/en/modules/virtualshelves/shelves.tt | 1 - > .../intranet-tmpl/prog/js/form-submit.js | 38 ------------------ > .../intranet-tmpl/prog/js/staff-global.js | 38 ++++++++++++++++++ > .../bootstrap/en/modules/opac-user.tt | 1 - > .../opac-tmpl/bootstrap/js/form-submit.js | 35 ----------------- > koha-tmpl/opac-tmpl/bootstrap/js/global.js | 39 +++++++++++++++++++ > 23 files changed, 77 insertions(+), 94 deletions(-) > delete mode 100644 koha-tmpl/intranet-tmpl/prog/js/form-submit.js > delete mode 100644 koha-tmpl/opac-tmpl/bootstrap/js/form-submit.js > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc >index 2d65e83dc1f..759b745e016 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc >@@ -2,9 +2,6 @@ > [% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %] > [% USE AuthorisedValues %] > >-[%#This include depends on the asset js/form-submit.js. Any template making use of this include must import form-submit.js as well. %] >-[%#FIXME can form-submit.js be imported into this file directly? %] >- > <table id="patron_holds_table" class="holds_table"> > <thead> > <tr> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt >index 454af49caf7..e5bd714eec4 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt >@@ -1093,7 +1093,6 @@ > > [% MACRO jsinclude BLOCK %] > [% Asset.js("js/acquisitions-menu.js") | $raw %] >- [% Asset.js("js/form-submit.js") | $raw %] > [% INCLUDE 'datatables.inc' %] > [% Asset.js("js/acq.js") | $raw %] > [% INCLUDE 'calendar.inc' %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt >index a083d41e2e3..966420858a9 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt >@@ -540,7 +540,6 @@ > > [% MACRO jsinclude BLOCK %] > [% Asset.js("js/acquisitions-menu.js") | $raw %] >- [% Asset.js("js/form-submit.js") | $raw %] > [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %] > [% Asset.js("js/acq.js") | $raw %] > [% Asset.js("js/additional-fields-entry.js") | $raw %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt >index fb00c76613d..aebf5a28641 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt >@@ -474,7 +474,6 @@ > > [% MACRO jsinclude BLOCK %] > [% Asset.js("js/acquisitions-menu.js") | $raw %] >- [% Asset.js("js/form-submit.js") | $raw %] > [% INCLUDE 'datatables.inc' %] > [% INCLUDE 'calendar.inc' %] > [% INCLUDE 'select2.inc' %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/additional-fields.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/additional-fields.tt >index 8b97922eb2a..bfd8a7096f7 100755 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/additional-fields.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/additional-fields.tt >@@ -306,7 +306,6 @@ > > [% MACRO jsinclude BLOCK %] > [% INCLUDE "datatables.inc" %] >- [% Asset.js("js/form-submit.js") | $raw %] > <script> > $(document).ready(function () { > $("#selecttable").find(":submit").hide(); >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/background_jobs.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/background_jobs.tt >index 82fcc24e4b8..b339e59647f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/background_jobs.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/background_jobs.tt >@@ -142,7 +142,6 @@ > > [% MACRO jsinclude BLOCK %] > [% Asset.js("js/admin-menu.js") | $raw %] >- [% Asset.js("js/form-submit.js") | $raw %] > [% INCLUDE 'js-date-format.inc' %] > [% INCLUDE 'datatables.inc' %] > <script> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/ill_batch_statuses.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/ill_batch_statuses.tt >index 9e6e88aae8c..74c7202657a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/ill_batch_statuses.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/ill_batch_statuses.tt >@@ -154,7 +154,6 @@ > > [% MACRO jsinclude BLOCK %] > [% Asset.js("js/admin-menu.js") | $raw %] >- [% Asset.js("js/form-submit.js") | $raw %] > [% INCLUDE 'datatables.inc' %] > [% END %] > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt >index 90fe28057ea..2336e14f8e3 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt >@@ -36,7 +36,6 @@ > [% INCLUDE 'calendar.inc' %] > [% INCLUDE 'str/cataloging_additem.inc' %] > [% Asset.js("js/cataloging_additem.js") | $raw %] >-[% Asset.js("js/form-submit.js") | $raw %] > <script> > var has_item_groups = "[% item_groups.size | html %]"; > </script> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >index d81f3522f6e..b19177158ac 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >@@ -1228,7 +1228,6 @@ > [% Asset.js("js/checkouts.js") | $raw %] > [% Asset.js("js/tables/bookings.js") | $raw %] > [% Asset.js("js/recalls.js") | $raw %] >- [% Asset.js("js/form-submit.js") | $raw %] > [% END %] > > [% INCLUDE 'intranet-bottom.inc' %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt >index 5b93b9b4f96..b8f31a1faa2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt >@@ -230,7 +230,6 @@ > [% MACRO jsinclude BLOCK %] > [% INCLUDE 'greybox.inc' %] > [% INCLUDE 'datatables.inc' %] >- [% Asset.js("js/form-submit.js") | $raw %] > [% Asset.js("js/labels-menu.js") | $raw %] > <script> > function dofocus() { // named function req'd for body onload event by some FF and IE7 security models >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt >index f3d076aa096..23a606946ad 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt >@@ -158,7 +158,6 @@ > [% MACRO jsinclude BLOCK %] > [% INCLUDE 'greybox.inc' %] > [% INCLUDE 'datatables.inc' %] >- [% Asset.js("js/form-submit.js") | $raw %] > <script> > function Xport() { > batches= new Array; >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >index 16c2b333803..c86144d82c1 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >@@ -786,7 +786,6 @@ > [% INCLUDE 'str/members-menu.inc' %] > [% Asset.js("js/members-menu.js") | $raw %] > [% Asset.js("js/recalls.js") | $raw %] >- [% Asset.js("js/form-submit.js") | $raw %] > <script> > const LoadCheckoutsTableDelay = 0; > const AlwaysLoadCheckoutsTable = [% Koha.Preference('AlwaysLoadCheckoutsTable') | html %]; >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt >index 36d5fe8c59d..19f4b5a8b68 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt >@@ -162,7 +162,6 @@ > > [% MACRO jsinclude BLOCK %] > [% Asset.js("js/tools-menu.js") | $raw %] >- [% Asset.js("js/form-submit.js") | $raw %] > [% INCLUDE 'datatables.inc' %] > <script> > $(document).ready(function() { >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt >index 55afc39ff05..c9f70e76912 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt >@@ -1710,7 +1710,6 @@ > [% Asset.js( "lib/codemirror/highlight.js" ) | $raw %] > [% Asset.css("lib/codemirror/highlight.css") | $raw %] > [% Asset.js( "js/mana.js" ) | $raw %] >- [% Asset.js("js/form-submit.js") | $raw %] > <script> > // if the report param form has multiselects override default form submission > if( $('#report_param_form').find('select[multiple]').length ) { >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >index 558b5e0d9f0..88d3890150c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >@@ -1425,7 +1425,6 @@ > [% INCLUDE 'calendar.inc' %] > [% INCLUDE 'select2.inc' %] > [% Asset.js("js/holds.js") | $raw %] >- [% Asset.js("js/form-submit.js") | $raw %] > > [% SET url_biblio_params = "biblionumber=" _ biblionumbers.join("&biblionumber=") %] > [% IF multi_hold %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/rotatingCollections.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/rotatingCollections.tt >index 2163b369556..a834490ce34 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/rotatingCollections.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/rotatingCollections.tt >@@ -98,7 +98,6 @@ > [% INCLUDE 'datatables.inc' %] > [% Asset.js("js/tools-menu.js") | $raw %] > [% Asset.js("js/rotating-collections.js") | $raw %] >- [% Asset.js("js/form-submit.js") | $raw %] > [% END %] > > [% INCLUDE 'intranet-bottom.inc' %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt >index 16629e32399..a203b6bdc69 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt >@@ -719,7 +719,6 @@ > [% INCLUDE 'datatables.inc' %] > [% Asset.js( "lib/sortable/Sortable.min.js" ) | $raw %] > [% Asset.js("js/pages/stockrotation.js") | $raw %] >- [% Asset.js("js/form-submit.js") | $raw %] > <script> > var stock_rotation_items_table_settings = [% TablesSettings.GetTableSettings( 'tools', 'stockrotation', 'stock_rotation_manage_items', 'json' ) | $raw %]; > var stock_rotation_table_settings = [% TablesSettings.GetTableSettings( 'tools', 'stockrotation', 'stock_rotation', 'json' ) | $raw %]; >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt >index ed1323169c6..62f680e8c57 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt >@@ -632,7 +632,6 @@ > > [% MACRO jsinclude BLOCK %] > [% INCLUDE 'datatables.inc' %] >- [% Asset.js("js/form-submit.js") | $raw %] > [% IF print %] > <script> > $(document).ready(function () { >diff --git a/koha-tmpl/intranet-tmpl/prog/js/form-submit.js b/koha-tmpl/intranet-tmpl/prog/js/form-submit.js >deleted file mode 100644 >index e52196c0582..00000000000 >--- a/koha-tmpl/intranet-tmpl/prog/js/form-submit.js >+++ /dev/null >@@ -1,38 +0,0 @@ >-$(document).ready(function () { >- $("body").on("click", ".submit-form-link", function (e) { >- e.preventDefault(); >- let form_data = $(this).data(); >- >- let confirm_msg = form_data.confirmationMsg; >- if (confirm_msg) { >- let confirmation = confirm(confirm_msg); >- if (!confirmation) { >- return false; >- } >- delete form_data.confirmationMsg; >- } >- >- let the_form = $("<form/>"); >- if (form_data.method === "post") { >- form_data.csrf_token = $('meta[name="csrf-token"]').attr("content"); >- } >- the_form.attr("method", form_data.method); >- the_form.attr("action", form_data.action); >- delete form_data.method; >- delete form_data.action; >- $.each(form_data, function (key, value) { >- the_form.append( >- $("<input/>", { >- type: "hidden", >- name: key, >- value: value, >- }) >- ); >- }); >- if (form_data.new_tab) { >- the_form.attr("target", "_blank"); >- } >- $("body").append(the_form); >- the_form.submit(); >- }); >-}); >diff --git a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >index b660011277a..6a45d5e4982 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >@@ -99,6 +99,44 @@ $(document).ready(function () { > } > ); > >+ // form-submit js >+ $("body").on("click", ".submit-form-link", function (e) { >+ e.preventDefault(); >+ let form_data = $(this).data(); >+ >+ let confirm_msg = form_data.confirmationMsg; >+ if (confirm_msg) { >+ let confirmation = confirm(confirm_msg); >+ if (!confirmation) { >+ return false; >+ } >+ delete form_data.confirmationMsg; >+ } >+ >+ let the_form = $("<form/>"); >+ if (form_data.method === "post") { >+ form_data.csrf_token = $('meta[name="csrf-token"]').attr("content"); >+ } >+ the_form.attr("method", form_data.method); >+ the_form.attr("action", form_data.action); >+ delete form_data.method; >+ delete form_data.action; >+ $.each(form_data, function (key, value) { >+ the_form.append( >+ $("<input/>", { >+ type: "hidden", >+ name: key, >+ value: value, >+ }) >+ ); >+ }); >+ if (form_data.new_tab) { >+ the_form.attr("target", "_blank"); >+ } >+ $("body").append(the_form); >+ the_form.submit(); >+ }); >+ > $(".close, .close_window").on("click", function (e) { > e.preventDefault(); > window.close(); >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >index 8a90f4de21b..efd65a542f9 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >@@ -1073,7 +1073,6 @@ > > [% INCLUDE 'opac-bottom.inc' %] > [% BLOCK jsinclude %] >- [% Asset.js("js/form-submit.js") | $raw %] > [% INCLUDE 'calendar.inc' %] > [% INCLUDE 'datatables.inc' %] > <script> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/js/form-submit.js b/koha-tmpl/opac-tmpl/bootstrap/js/form-submit.js >deleted file mode 100644 >index cb8fc2a261f..00000000000 >--- a/koha-tmpl/opac-tmpl/bootstrap/js/form-submit.js >+++ /dev/null >@@ -1,35 +0,0 @@ >-$(document).ready(function () { >- $(".submit-form-link").click(function (e) { >- e.preventDefault(); >- let form_data = $(this).data(); >- >- let confirm_msg = form_data.confirmationMsg; >- if (confirm_msg) { >- let confirmation = confirm(confirm_msg); >- if (!confirmation) { >- return false; >- } >- delete form_data.confirmationMsg; >- } >- >- let the_form = $("<form/>"); >- if (form_data.method === "post") { >- form_data.csrf_token = $('meta[name="csrf-token"]').attr("content"); >- } >- the_form.attr("method", form_data.method); >- the_form.attr("action", form_data.action); >- delete form_data.method; >- delete form_data.action; >- $.each(form_data, function (key, value) { >- the_form.append( >- $("<input/>", { >- type: "hidden", >- name: key, >- value: value, >- }) >- ); >- }); >- $("body").append(the_form); >- the_form.submit(); >- }); >-}); >diff --git a/koha-tmpl/opac-tmpl/bootstrap/js/global.js b/koha-tmpl/opac-tmpl/bootstrap/js/global.js >index a3c5a3ce862..936ed8bc9a1 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/js/global.js >+++ b/koha-tmpl/opac-tmpl/bootstrap/js/global.js >@@ -267,6 +267,45 @@ $(document).ready(function () { > > observer.observe(document.querySelector(".sticky")); > } >+ >+ // form-submit js >+ $("body").on("click", ".submit-form-link", function (e) { >+ e.preventDefault(); >+ let form_data = $(this).data(); >+ >+ let confirm_msg = form_data.confirmationMsg; >+ if (confirm_msg) { >+ let confirmation = confirm(confirm_msg); >+ if (!confirmation) { >+ return false; >+ } >+ delete form_data.confirmationMsg; >+ } >+ >+ let the_form = $("<form/>"); >+ if (form_data.method === "post") { >+ form_data.csrf_token = $('meta[name="csrf-token"]').attr("content"); >+ } >+ the_form.attr("method", form_data.method); >+ the_form.attr("action", form_data.action); >+ delete form_data.method; >+ delete form_data.action; >+ $.each(form_data, function (key, value) { >+ the_form.append( >+ $("<input/>", { >+ type: "hidden", >+ name: key, >+ value: value, >+ }) >+ ); >+ }); >+ if (form_data.new_tab) { >+ the_form.attr("target", "_blank"); >+ } >+ $("body").append(the_form); >+ the_form.submit(); >+ }); >+ > $("html").removeClass("no-js").addClass("js"); > $(".close").click(function () { > window.close(); >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 39567
:
180669
|
180687
|
180983
|
180984
|
180985
|
180986
|
180987
|
180988
|
181235
|
182168
|
182169
|
182170
|
182171
|
182234
|
182235
|
182236
|
182237