Bugzilla – Attachment 151089 Details for
Bug 8179
Receiving multiple order lines at once
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8179: Fix JS indentation in parcel.tt
Bug-8179-Fix-JS-indentation-in-parceltt.patch (text/plain), 4.04 KB, created by
Tomás Cohen Arazi (tcohen)
on 2023-05-11 15:11:59 UTC
(
hide
)
Description:
Bug 8179: Fix JS indentation in parcel.tt
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2023-05-11 15:11:59 UTC
Size:
4.04 KB
patch
obsolete
>From 1fcf52c7fd728938320c161c535a60047d3321bb Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Thu, 11 May 2023 12:11:40 -0300 >Subject: [PATCH] Bug 8179: Fix JS indentation in parcel.tt > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > .../prog/en/modules/acqui/parcel.tt | 58 +++++++++---------- > 1 file changed, 29 insertions(+), 29 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt >index 6d2cc561956..5cd7291a4e8 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt >@@ -647,45 +647,45 @@ > }; > > var selected_rows = {}; >- $('#select_multiple').click(function() { >- var ids = Object.keys(selected_rows); >- if(!ids.length) return; >- location.href = 'orderreceive.pl?multiple_orders='+ids.join(',')+ '&invoiceid=[% invoiceid | uri %]'; >+ $('#select_multiple').click(function () { >+ var ids = Object.keys(selected_rows); >+ if (!ids.length) return; >+ location.href = 'orderreceive.pl?multiple_orders=' + ids.join(',') + '&invoiceid=[% invoiceid | uri %]'; > }).html(PENDING_MULTI_SELECTION.format('0')) > options.select = { >- style: 'api' >+ style: 'api' > }; > options.order = [[1, 'asc']]; > options.columns.unshift({ >- "data": function(row, type, val, meta) { >- return '<input type="checkbox" class="selOrder" />'; >- }, >- "searchable": false, >- "orderable": false >+ "data": function (row, type, val, meta) { >+ return '<input type="checkbox" class="selOrder" />'; >+ }, >+ "searchable": false, >+ "orderable": false > }); > >- var pending_orders_table = $("#pending_orders").kohaTable(options, {}, 1, {"basket.vendor_id": [% booksellerid | html %]}); >+ var pending_orders_table = $("#pending_orders").kohaTable(options, {}, 1, { "basket.vendor_id": [% booksellerid | html %] }); > > var api = pending_orders_table.api(); >- api.on('draw', function() { >- api.rows().every(function() { >- var row = this; >- var data = row.data(); >- $('.selOrder', row.node()).on('click', function(event) { >- if($(this).prop('checked')) { >- row.select(); >- selected_rows[data.order_id] = data; >- } else { >- row.deselect(); >- delete selected_rows[data.order_id]; >- } >- $('#select_multiple').html(PENDING_MULTI_SELECTION.format(Object.keys(selected_rows).length)); >+ api.on('draw', function () { >+ api.rows().every(function () { >+ var row = this; >+ var data = row.data(); >+ $('.selOrder', row.node()).on('click', function (event) { >+ if ($(this).prop('checked')) { >+ row.select(); >+ selected_rows[data.order_id] = data; >+ } else { >+ row.deselect(); >+ delete selected_rows[data.order_id]; >+ } >+ $('#select_multiple').html(PENDING_MULTI_SELECTION.format(Object.keys(selected_rows).length)); >+ }); >+ if (selected_rows[data.order_id]) { >+ row.select(); >+ $('.selOrder', row.node()).prop('checked', true); >+ } > }); >- if(selected_rows[data.order_id]) { >- row.select(); >- $('.selOrder', row.node()).prop('checked', true); >- } >- }); > }); > > >-- >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 8179
:
9881
|
111437
|
111438
|
111439
|
111440
|
112554
|
112555
|
112556
|
112558
|
112588
|
112643
|
112644
|
112645
|
112646
|
112744
|
112745
|
112746
|
112747
|
114688
|
114689
|
114690
|
114691
|
116582
|
116583
|
116584
|
116585
|
116588
|
116589
|
116590
|
116591
|
116681
|
116682
|
116683
|
116684
|
116942
|
116943
|
116944
|
116945
|
119178
|
119179
|
119180
|
119181
|
120620
|
120621
|
120622
|
120623
|
148215
|
148216
|
148217
|
148218
|
148233
|
148284
|
148285
|
148286
|
148287
|
148288
|
148521
|
148522
|
148523
|
148524
|
148525
|
148526
|
148685
|
148981
|
148982
|
148983
|
148984
|
148985
|
148986
|
151026
|
151086
|
151087
|
151088
|
151089
|
151092
|
151093
|
151137
|
151138
|
151139
|
151140
|
151141
|
151142
|
151143
|
151144
|
151145
|
151163
|
151250
|
151367
|
151431