View | Details | Raw Unified | Return to bug 39567
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc (-3 lines)
Lines 2-10 Link Here
2
[% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %]
2
[% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %]
3
[% USE AuthorisedValues %]
3
[% USE AuthorisedValues %]
4
4
5
[%#This include depends on the asset js/form-submit.js. Any template making use of this include must import form-submit.js as well. %]
6
[%#FIXME can form-submit.js be imported into this file directly? %]
7
8
<table id="patron_holds_table" class="holds_table">
5
<table id="patron_holds_table" class="holds_table">
9
    <thead>
6
    <thead>
10
        <tr>
7
        <tr>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt (-1 lines)
Lines 1100-1106 Link Here
1100
1100
1101
[% MACRO jsinclude BLOCK %]
1101
[% MACRO jsinclude BLOCK %]
1102
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
1102
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
1103
    [% Asset.js("js/form-submit.js") | $raw %]
1104
    [% INCLUDE 'datatables.inc' %]
1103
    [% INCLUDE 'datatables.inc' %]
1105
    [% Asset.js("js/acq.js") | $raw %]
1104
    [% Asset.js("js/acq.js") | $raw %]
1106
    [% INCLUDE 'calendar.inc' %]
1105
    [% INCLUDE 'calendar.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt (-1 lines)
Lines 540-546 Link Here
540
540
541
[% MACRO jsinclude BLOCK %]
541
[% MACRO jsinclude BLOCK %]
542
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
542
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
543
    [% Asset.js("js/form-submit.js") | $raw %]
544
    [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %]
543
    [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %]
545
    [% Asset.js("js/acq.js") | $raw %]
544
    [% Asset.js("js/acq.js") | $raw %]
546
    [% Asset.js("js/additional-fields-entry.js") | $raw %]
545
    [% Asset.js("js/additional-fields-entry.js") | $raw %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt (-1 lines)
Lines 474-480 Link Here
474
474
475
[% MACRO jsinclude BLOCK %]
475
[% MACRO jsinclude BLOCK %]
476
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
476
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
477
    [% Asset.js("js/form-submit.js") | $raw %]
478
    [% INCLUDE 'datatables.inc' %]
477
    [% INCLUDE 'datatables.inc' %]
479
    [% INCLUDE 'calendar.inc' %]
478
    [% INCLUDE 'calendar.inc' %]
480
    [% INCLUDE 'select2.inc' %]
479
    [% INCLUDE 'select2.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/additional-fields.tt (-1 lines)
Lines 306-312 Link Here
306
306
307
[% MACRO jsinclude BLOCK %]
307
[% MACRO jsinclude BLOCK %]
308
    [% INCLUDE "datatables.inc" %]
308
    [% INCLUDE "datatables.inc" %]
309
    [% Asset.js("js/form-submit.js") | $raw %]
310
    <script>
309
    <script>
311
        $(document).ready(function () {
310
        $(document).ready(function () {
312
            $("#selecttable").find(":submit").hide();
311
            $("#selecttable").find(":submit").hide();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/background_jobs.tt (-1 lines)
Lines 142-148 Link Here
142
142
143
[% MACRO jsinclude BLOCK %]
143
[% MACRO jsinclude BLOCK %]
144
    [% Asset.js("js/admin-menu.js") | $raw %]
144
    [% Asset.js("js/admin-menu.js") | $raw %]
145
    [% Asset.js("js/form-submit.js") | $raw %]
146
    [% INCLUDE 'js-date-format.inc' %]
145
    [% INCLUDE 'js-date-format.inc' %]
147
    [% INCLUDE 'datatables.inc' %]
146
    [% INCLUDE 'datatables.inc' %]
148
    <script>
147
    <script>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/ill_batch_statuses.tt (-1 lines)
Lines 154-160 Link Here
154
154
155
[% MACRO jsinclude BLOCK %]
155
[% MACRO jsinclude BLOCK %]
156
    [% Asset.js("js/admin-menu.js") | $raw %]
156
    [% Asset.js("js/admin-menu.js") | $raw %]
157
    [% Asset.js("js/form-submit.js") | $raw %]
158
    [% INCLUDE 'datatables.inc' %]
157
    [% INCLUDE 'datatables.inc' %]
159
[% END %]
158
[% END %]
160
159
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt (-1 lines)
Lines 36-42 Link Here
36
[% INCLUDE 'calendar.inc' %]
36
[% INCLUDE 'calendar.inc' %]
37
[% INCLUDE 'str/cataloging_additem.inc' %]
37
[% INCLUDE 'str/cataloging_additem.inc' %]
38
[% Asset.js("js/cataloging_additem.js") | $raw %]
38
[% Asset.js("js/cataloging_additem.js") | $raw %]
39
[% Asset.js("js/form-submit.js") | $raw %]
40
<script>
39
<script>
41
    var has_item_groups = "[% item_groups.size | html %]";
40
    var has_item_groups = "[% item_groups.size | html %]";
42
</script>
41
</script>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-1 lines)
Lines 1242-1248 Link Here
1242
    [% Asset.js("js/checkouts.js") | $raw %]
1242
    [% Asset.js("js/checkouts.js") | $raw %]
1243
    [% Asset.js("js/tables/bookings.js") | $raw %]
1243
    [% Asset.js("js/tables/bookings.js") | $raw %]
1244
    [% Asset.js("js/recalls.js") | $raw %]
1244
    [% Asset.js("js/recalls.js") | $raw %]
1245
    [% Asset.js("js/form-submit.js") | $raw %]
1246
[% END %]
1245
[% END %]
1247
1246
1248
[% INCLUDE 'intranet-bottom.inc' %]
1247
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt (-1 lines)
Lines 231-237 Link Here
231
[% MACRO jsinclude BLOCK %]
231
[% MACRO jsinclude BLOCK %]
232
    [% INCLUDE 'greybox.inc' %]
232
    [% INCLUDE 'greybox.inc' %]
233
    [% INCLUDE 'datatables.inc' %]
233
    [% INCLUDE 'datatables.inc' %]
234
    [% Asset.js("js/form-submit.js") | $raw %]
235
    [% Asset.js("js/labels-menu.js") | $raw %]
234
    [% Asset.js("js/labels-menu.js") | $raw %]
236
    <script>
235
    <script>
237
        function dofocus() {    // named function req'd for body onload event by some FF and IE7 security models
236
        function dofocus() {    // named function req'd for body onload event by some FF and IE7 security models
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt (-1 lines)
Lines 158-164 Link Here
158
[% MACRO jsinclude BLOCK %]
158
[% MACRO jsinclude BLOCK %]
159
    [% INCLUDE 'greybox.inc' %]
159
    [% INCLUDE 'greybox.inc' %]
160
    [% INCLUDE 'datatables.inc' %]
160
    [% INCLUDE 'datatables.inc' %]
161
    [% Asset.js("js/form-submit.js") | $raw %]
162
    <script>
161
    <script>
163
        function Xport() {
162
        function Xport() {
164
            batches= new Array;
163
            batches= new Array;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-1 lines)
Lines 786-792 Link Here
786
    [% INCLUDE 'str/members-menu.inc' %]
786
    [% INCLUDE 'str/members-menu.inc' %]
787
    [% Asset.js("js/members-menu.js") | $raw %]
787
    [% Asset.js("js/members-menu.js") | $raw %]
788
    [% Asset.js("js/recalls.js") | $raw %]
788
    [% Asset.js("js/recalls.js") | $raw %]
789
    [% Asset.js("js/form-submit.js") | $raw %]
790
    <script>
789
    <script>
791
        const LoadCheckoutsTableDelay = 0;
790
        const LoadCheckoutsTableDelay = 0;
792
        const AlwaysLoadCheckoutsTable = [% Koha.Preference('AlwaysLoadCheckoutsTable') | html %];
791
        const AlwaysLoadCheckoutsTable = [% Koha.Preference('AlwaysLoadCheckoutsTable') | html %];
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt (-1 lines)
Lines 162-168 Link Here
162
162
163
[% MACRO jsinclude BLOCK %]
163
[% MACRO jsinclude BLOCK %]
164
    [% Asset.js("js/tools-menu.js") | $raw %]
164
    [% Asset.js("js/tools-menu.js") | $raw %]
165
    [% Asset.js("js/form-submit.js") | $raw %]
166
    [% INCLUDE 'datatables.inc' %]
165
    [% INCLUDE 'datatables.inc' %]
167
    <script>
166
    <script>
168
        $(document).ready(function() {
167
        $(document).ready(function() {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt (-1 lines)
Lines 1713-1719 Link Here
1713
    [% Asset.js( "lib/codemirror/highlight.js" ) | $raw %]
1713
    [% Asset.js( "lib/codemirror/highlight.js" ) | $raw %]
1714
    [% Asset.css("lib/codemirror/highlight.css") | $raw %]
1714
    [% Asset.css("lib/codemirror/highlight.css") | $raw %]
1715
    [% Asset.js( "js/mana.js" ) | $raw %]
1715
    [% Asset.js( "js/mana.js" ) | $raw %]
1716
    [% Asset.js("js/form-submit.js") | $raw %]
1717
    [% INCLUDE 'select2.inc' %]
1716
    [% INCLUDE 'select2.inc' %]
1718
    <script>
1717
    <script>
1719
        //  if the report param form has multiselects override default form submission
1718
        //  if the report param form has multiselects override default form submission
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-1 lines)
Lines 1425-1431 Link Here
1425
    [% INCLUDE 'calendar.inc' %]
1425
    [% INCLUDE 'calendar.inc' %]
1426
    [% INCLUDE 'select2.inc' %]
1426
    [% INCLUDE 'select2.inc' %]
1427
    [% Asset.js("js/holds.js") | $raw %]
1427
    [% Asset.js("js/holds.js") | $raw %]
1428
    [% Asset.js("js/form-submit.js") | $raw %]
1429
1428
1430
    [% SET url_biblio_params = "biblionumber=" _ biblionumbers.join("&amp;biblionumber=") %]
1429
    [% SET url_biblio_params = "biblionumber=" _ biblionumbers.join("&amp;biblionumber=") %]
1431
    [% IF multi_hold %]
1430
    [% IF multi_hold %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/rotatingCollections.tt (-1 lines)
Lines 98-104 Link Here
98
    [% INCLUDE 'datatables.inc' %]
98
    [% INCLUDE 'datatables.inc' %]
99
    [% Asset.js("js/tools-menu.js") | $raw %]
99
    [% Asset.js("js/tools-menu.js") | $raw %]
100
    [% Asset.js("js/rotating-collections.js") | $raw %]
100
    [% Asset.js("js/rotating-collections.js") | $raw %]
101
    [% Asset.js("js/form-submit.js") | $raw %]
102
[% END %]
101
[% END %]
103
102
104
[% INCLUDE 'intranet-bottom.inc' %]
103
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt (-1 lines)
Lines 719-725 Link Here
719
    [% INCLUDE 'datatables.inc' %]
719
    [% INCLUDE 'datatables.inc' %]
720
    [% Asset.js( "lib/sortable/Sortable.min.js" ) | $raw %]
720
    [% Asset.js( "lib/sortable/Sortable.min.js" ) | $raw %]
721
    [% Asset.js("js/pages/stockrotation.js") | $raw %]
721
    [% Asset.js("js/pages/stockrotation.js") | $raw %]
722
    [% Asset.js("js/form-submit.js") | $raw %]
723
    <script>
722
    <script>
724
        var stock_rotation_items_table_settings = [% TablesSettings.GetTableSettings( 'tools', 'stockrotation', 'stock_rotation_manage_items', 'json' ) | $raw %];
723
        var stock_rotation_items_table_settings = [% TablesSettings.GetTableSettings( 'tools', 'stockrotation', 'stock_rotation_manage_items', 'json' ) | $raw %];
725
        var stock_rotation_table_settings = [% TablesSettings.GetTableSettings( 'tools', 'stockrotation', 'stock_rotation', 'json' ) | $raw %];
724
        var stock_rotation_table_settings = [% TablesSettings.GetTableSettings( 'tools', 'stockrotation', 'stock_rotation', 'json' ) | $raw %];
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt (-1 lines)
Lines 632-638 Link Here
632
632
633
[% MACRO jsinclude BLOCK %]
633
[% MACRO jsinclude BLOCK %]
634
    [% INCLUDE 'datatables.inc' %]
634
    [% INCLUDE 'datatables.inc' %]
635
    [% Asset.js("js/form-submit.js") | $raw %]
636
    [% IF print %]
635
    [% IF print %]
637
        <script>
636
        <script>
638
            $(document).ready(function () {
637
            $(document).ready(function () {
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc (-1 / +1 lines)
Lines 103-109 Link Here
103
</script>
103
</script>
104
[% Asset.js("js/global.js") | $raw %]
104
[% Asset.js("js/global.js") | $raw %]
105
<script type="module">
105
<script type="module">
106
    import { submit_form } from "/bootstrap/js/form-submit.js";
106
    import { submit_form } from "/opac-tmpl/bootstrap/js/form-submit.js";
107
    $("body").on("click", ".submit-form-link", function (e) {
107
    $("body").on("click", ".submit-form-link", function (e) {
108
        e.preventDefault();
108
        e.preventDefault();
109
        submit_form(this);
109
        submit_form(this);
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt (-2 lines)
Lines 1076-1082 Link Here
1076
1076
1077
[% INCLUDE 'opac-bottom.inc' %]
1077
[% INCLUDE 'opac-bottom.inc' %]
1078
[% BLOCK jsinclude %]
1078
[% BLOCK jsinclude %]
1079
    [% Asset.js("js/form-submit.js") | $raw %]
1080
    [% INCLUDE 'calendar.inc' %]
1079
    [% INCLUDE 'calendar.inc' %]
1081
    [% INCLUDE 'datatables.inc' %]
1080
    [% INCLUDE 'datatables.inc' %]
1082
    <script>
1081
    <script>
1083
- 

Return to bug 39567