From 34e78573d4235101ff20c4e337759a3a72b7d6d9 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 27 Jul 2018 15:47:06 -0300 Subject: [PATCH] Bug 15184: Prepare the ground - Move funds and sort fields autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We are going to reuse the same logic: when a fund is selected the statistic values are automatically updated. Let move it to make it reusable more easily and isolate the code. Sponsored-by: BULAC - http://www.bulac.fr/ Signed-off-by: Josef Moravec Signed-off-by: Séverine QUEUNE --- .../prog/en/modules/acqui/addorderiso2709.tt | 65 +-------------------- koha-tmpl/intranet-tmpl/prog/js/funds_sorts.js | 67 ++++++++++++++++++++++ 2 files changed, 68 insertions(+), 64 deletions(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/js/funds_sorts.js diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt index 3431a06e5d..8e8800be55 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt @@ -429,6 +429,7 @@ [% INCLUDE 'datatables.inc' %] [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %] [% Asset.js("js/acq.js") | $raw %] + [% Asset.js("js/funds_sorts.js") | $raw %]