From aacb81f0abd36a2ce3800f5bff15ef2652e418a9 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 As Jonathan suggested, use jQuery toggle function. Signed-off-by: Srdjan Signed-off-by: Jonathan Druart Signed-off-by: Galen Charlton --- koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tt | 7 +------ 1 file changed, 1 insertion(+), 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 8e58e28e23..acff3bc0c4 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 -- 2.39.5