From df616cbf4197d5aaf5b1437083ef0c96ee1e4027 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 24 May 2013 10:31:54 +0200 Subject: [PATCH] Bug 10321: QA Followup on report 9722 Content-Type: text/plain; charset=utf-8 As Jonathan suggested, use jQuery toggle function. Test plan: Enable OPACShowHoldNotes. Place one hold. Repeat clicking on Edit notes to show and hide notes. Place a multi hold (two biblios at the same time). Check again with both. --- .../opac-tmpl/prog/en/modules/opac-reserve.tt | 7 +------ 1 files changed, 1 insertions(+), 6 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 8e58e28..acff3bc 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tt @@ -117,12 +117,7 @@ // Show or hide holds notes $(".shownotes").click(function(){ biblioNum = suffixOf($(this).attr("id"), "_"); - if( $("#notesrow_"+biblioNum).is(":visible") ) { - $("#notesrow_"+biblioNum).hide(); - } - else { - $("#notesrow_"+biblioNum).show(); - } + $("#notesrow_"+biblioNum).toggle(); }); // When 'Place Hold' button is clicked -- 1.7.7.6