Bug 9722: Toggle display of hold notes with Edit notes button
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. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
This commit is contained in:
parent
847cc15650
commit
270e86cdac
1 changed files with 7 additions and 3 deletions
|
@ -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 @@
|
|||
<a href="#" style="font-size:85%;text-decoration:none;" onclick="document.getElementById('expiration_date_[% bibitemloo.biblionumber %]').value='';return false;">Clear date</a></p>
|
||||
</td>[% END %]
|
||||
|
||||
[% IF ( OPACShowHoldNotes ) %][% IF ( bibitemloo.holdable ) %]<td><input type="button" id="shownotes_[% bibitemloo.biblionumber %]" class="shownotes" value="Show notes"/></td>[% END %][% END %]
|
||||
[% IF ( OPACShowHoldNotes ) %][% IF ( bibitemloo.holdable ) %]<td><input type="button" id="shownotes_[% bibitemloo.biblionumber %]" class="shownotes" value="Edit notes"/></td>[% END %][% END %]
|
||||
|
||||
[% IF ( bibitemloo.holdable ) %]
|
||||
<!-- HOLD ABLE -->
|
||||
|
|
Loading…
Reference in a new issue