Bug 35402: Fix regressions.t
The audio alert feature is not correctly designed and is problematic. It looks at the class name in the DOM, not when the element with this class name will be displayed to the end user So it's not possible to make it work for modals for instance, or if an element is built in JS then displayed This patch remove the modal code from the code, if there are no waiting holds. It is the behaviour that existed prior to the Bootstrap update. However it is kind of random behaviour, the song that is played when the librarian open the circ page is different if the user has waiting holds or not. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
7e5a2f5a4d
commit
95ff9ad02d
1 changed files with 2 additions and 2 deletions
|
@ -963,7 +963,7 @@
|
|||
</div> <!-- /.modal-dialog -->
|
||||
</div> <!-- /#barcodeSubmittedModal -->
|
||||
|
||||
[% #IF waiting_holds.count > 0 %]
|
||||
[% IF waiting_holds.count > 0 %]
|
||||
<div id="circ-warnwaitingholds-modal" class="modal audio-alert-action block">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
|
@ -983,7 +983,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
[% #END %]
|
||||
[% END %]
|
||||
[% INCLUDE modals/cancel_booking.inc %]
|
||||
|
||||
[% MACRO jsinclude BLOCK %]
|
||||
|
|
Loading…
Reference in a new issue