From 7f94b794955b70b4db26dee3ce3c2b23079bacf3 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Wed, 12 Mar 2014 07:17:03 -0400 Subject: [PATCH] Bug 11703 [QA Followup 13] - Removed uneccessary data from renewal box during renewal --- koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js index ad36b8a..268eefe 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js +++ b/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js @@ -41,7 +41,7 @@ $(document).ready(function() { } }); - // Handle renewals + // Handle renewals and returns $("#RenewCheckinChecked").on("click",function(){ $(".checkin:checked:visible").each(function() { itemnumber = $(this).val(); @@ -74,7 +74,7 @@ $(document).ready(function() { var itemnumber = $(this).val(); - $(this).replaceWith(""); + $(this).parent().parent().replaceWith(""); var params = { itemnumber: itemnumber, @@ -214,6 +214,7 @@ $(document).ready(function() { var span_style = ""; var span_class = ""; + content += ""; content += "" + oObj.renewals_count + ""; if ( oObj.can_renew ) { @@ -253,6 +254,8 @@ $(document).ready(function() { + RENEWALS_REMAINING + ")"; } + content += ""; + return content; } -- 1.7.2.5