From 1eaa8f047694b78c1c9ab18e3b98fd23e781a4f3 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 15 Jun 2016 10:51:34 -0400 Subject: [PATCH] Bug 16752 [Revised] Remove the use of event attributes from some acquisitions templates - Uncertain prices This patch modifies the acquisitions uncertain prices template to remove event attributes onclick and onchange. Also changed on the uncertain prices page: Added a label to the orders filter, removed redundant form submit function. - Locate a vendor which has orders with uncertain prices - Click the 'Uncertain prices' tab in the left-hand sidebar - Enter invalid data in the "price" field for any order. Confirm that an error is triggered when the field loses focus. Signed-off-by: Aleisha Amohia QA Revision: Corrected input type of submit button. Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- .../prog/en/modules/acqui/uncertainprice.tt | 29 ++++++++----------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/uncertainprice.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/uncertainprice.tt index 1853805fe0..b5491cff25 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/uncertainprice.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/uncertainprice.tt @@ -13,18 +13,16 @@ ], "sPaginationType": "four_button" } ) ); + $(".check_uncertain").on("change",function(){ + var form = document.getElementById("uncertainprices"); + var ordernumber = $(this).data("ordernumber"); + uncheckbox( form, ordernumber ); + }); }); var MSG_INVALIDPRICE = _("ERROR: Price is not a valid number, please check the price and try again!"); //]]> - [% INCLUDE 'header.inc' %] @@ -75,10 +73,10 @@ function check(form) { [% END %]

Orders with uncertain prices

-
+ - Orders from: - [% IF ( owner ) %] @@ -89,7 +87,7 @@ function check(form) {
-
+ @@ -122,24 +120,21 @@ function check(form) { [% END %]
- + - [% IF Koha.Preference('AcqCreateItem') == 'ordering' %] [% uncertainpriceorder.quantity %] [% ELSE %] - + [% END %]
-
+
[% END %] -- 2.39.5