From 08d0ce42959aac422d891e185e34ba53387701d9 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Mon, 4 Mar 2013 08:12:15 +0100 Subject: [PATCH] Bug 9722: Toggle display of hold notes with Edit notes button Content-Type: text/plain; charset="utf-8" Small adjustments, requested by Kyle: 1) Rename Show notes button. It is called now: Edit notes. 2) Do not hide all other notes fields. The Edit button now only toggles the corresponding hold notes field. --- .../opac-tmpl/prog/en/modules/opac-reserve.tt | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tt index 6b09e2b..f5feb29 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tt @@ -117,8 +117,12 @@ // Show or hide holds notes $(".shownotes").click(function(){ biblioNum = suffixOf($(this).attr("id"), "_"); - $(".notesrow").hide(); - $("#notesrow_"+biblioNum).show(); + if( $("#notesrow_"+biblioNum).is(":visible") ) { + $("#notesrow_"+biblioNum).hide(); + } + else { + $("#notesrow_"+biblioNum).show(); + } }); // When 'Place Hold' button is clicked @@ -360,7 +364,7 @@ Clear date

[% END %] - [% IF ( OPACShowHoldNotes ) %][% IF ( bibitemloo.holdable ) %][% END %][% END %] + [% IF ( OPACShowHoldNotes ) %][% IF ( bibitemloo.holdable ) %][% END %][% END %] [% IF ( bibitemloo.holdable ) %] -- 1.7.7.6