Browse Source

Bug 26767: Remove the use of jquery.checkboxes plugin from duplicate orders template

This patch removes the use of the jquery.checkboxes plugin from the
duplicate orders template in acquisitions.

To test, apply the patch and go to Acquisitions -> Vendor -> Basket.

- Click "Add to basket."
- Click "From existing orders (copy)."
- Perform a search which will return some orders.
- Test the "Select all" and "Clear all" links. Confirm that they work
  correctly.

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
20.11.x
Owen Leonard 11 months ago
committed by Jonathan Druart
parent
commit
231f99e3e1
  1. 11
      koha-tmpl/intranet-tmpl/prog/en/modules/acqui/duplicate_orders.tt

11
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/duplicate_orders.tt

@ -304,7 +304,6 @@ Basket [% basket.basketno | html %] &rsaquo; Duplicate existing orders
[% Asset.js("js/autocomplete/patrons.js") | $raw %]
[% Asset.js("js/acq.js") | $raw %]
[% Asset.js("js/funds_sorts.js") | $raw %]
[% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
<script>
function update_ordernumber_list(){
var ordernumbers = [];
@ -368,17 +367,15 @@ Basket [% basket.basketno | html %] &rsaquo; Duplicate existing orders
update_ordernumber_list();
});
function selectAll () {
$("#table_orders").checkCheckboxes();
$("#table_orders").find("input[type='checkbox'][name='ordernumber']").each(function(){
$(this).change();
} );
$(this).prop("checked", true).change();
});
return false;
}
function clearAll () {
$("#table_orders").unCheckCheckboxes();
$("#table_orders").find("input[type='checkbox'][name='ordernumber']").each(function(){
$(this).change();
} );
$(this).prop("checked", false).change();
});
return false;
}

Loading…
Cancel
Save