From 95e05c0499093867c13339fec927cf17a0b76260 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 21 Jan 2010 09:27:40 -0500 Subject: [PATCH] Improve behavior of manual history checkbox behavior. --- .../prog/en/modules/serials/subscription-add.tmpl | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tmpl index 61e865c6df..a590255034 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tmpl @@ -917,10 +917,17 @@ function Check(f) { $(document).ready(function() { init_pattern(); - $("#subscription_form_history").show(); - + $("#subscription_form_history").show(); + $("#cancel_manual_history").click(function(){ + $("#subscription_form_history").hide(); + $("#manuallist").attr("checked",""); + }); $("#manuallist").click( function(){ - $("#subscription_form_history").toggle(); + if($(this).attr("checked")){ + $("#subscription_form_history").show(); + } else { + $("#subscription_form_history").hide(); + } } ); // $(".widelabel").attr("width", "300px"); // labels stay skinny in IE7 anyway. @@ -1068,8 +1075,8 @@ $(document).ready(function() {