View | Details | Raw Unified | Return to bug 9722
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tt (-4 / +7 lines)
Lines 117-124 Link Here
117
    // Show or hide holds notes
117
    // Show or hide holds notes
118
    $(".shownotes").click(function(){
118
    $(".shownotes").click(function(){
119
        biblioNum = suffixOf($(this).attr("id"), "_");
119
        biblioNum = suffixOf($(this).attr("id"), "_");
120
        $(".notesrow").hide();
120
        if( $("#notesrow_"+biblioNum).is(":visible") ) {
121
        $("#notesrow_"+biblioNum).show();
121
            $("#notesrow_"+biblioNum).hide();
122
        }
123
        else {
124
            $("#notesrow_"+biblioNum).show();
125
        }
122
    });
126
    });
123
127
124
    // When 'Place Hold' button is clicked
128
    // When 'Place Hold' button is clicked
Lines 360-366 Link Here
360
      <a href="#" style="font-size:85%;text-decoration:none;" onclick="document.getElementById('expiration_date_[% bibitemloo.biblionumber %]').value='';return false;">Clear date</a></p>
364
      <a href="#" style="font-size:85%;text-decoration:none;" onclick="document.getElementById('expiration_date_[% bibitemloo.biblionumber %]').value='';return false;">Clear date</a></p>
361
    </td>[% END %]
365
    </td>[% END %]
362
366
363
    [% IF ( OPACShowHoldNotes ) %][% IF ( bibitemloo.holdable ) %]<td><input type="button" id="shownotes_[% bibitemloo.biblionumber %]" class="shownotes" value="Show notes"/></td>[% END %][% END %]
367
    [% IF ( OPACShowHoldNotes ) %][% IF ( bibitemloo.holdable ) %]<td><input type="button" id="shownotes_[% bibitemloo.biblionumber %]" class="shownotes" value="Edit notes"/></td>[% END %][% END %]
364
368
365
                    [% IF ( bibitemloo.holdable ) %]
369
                    [% IF ( bibitemloo.holdable ) %]
366
		    <!-- HOLD ABLE -->
370
		    <!-- HOLD ABLE -->
367
- 

Return to bug 9722