Lines 865-870
Link Here
|
865 |
</div> <!-- /.container-fluid --> |
865 |
</div> <!-- /.container-fluid --> |
866 |
</div> <!-- /#main --> |
866 |
</div> <!-- /#main --> |
867 |
|
867 |
|
|
|
868 |
[% # hold suspend modal form %] |
869 |
<div id="suspendHoldModal" class="modal" tabindex="-1" role="dialog" aria-labelledby="suspendModalLabel" aria-hidden="true" data-focus="false"> |
870 |
<div class="modal-dialog"> |
871 |
<div class="modal-content"> |
872 |
<form action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post"> |
873 |
<div class="modal-header"> |
874 |
[% IF HOLD.suspend %] |
875 |
<h5 class="modal-title" id="suspendModalLabel">Resume hold</h5> |
876 |
[% ELSE %] |
877 |
<h5 class="modal-title" id="suspendModalLabel">Suspend hold</h5> |
878 |
[% END %] |
879 |
<button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"> |
880 |
<span aria-hidden="true">x</span> |
881 |
</button> |
882 |
</div> |
883 |
<div class="modal-body"> |
884 |
<h6 id="suspendHoldTitle"></h6> |
885 |
<input type="hidden" name="reserve_id" id="suspendHoldReserveId" value="" /> |
886 |
<label for="suspend_untilDate">Suspend until:</label> |
887 |
<input type="text" name="suspend_until" id="suspend_untilDate" size="10" /> |
888 |
[% INCLUDE 'date-format.inc' %] |
889 |
<p><a href="#" id="suspend-modal-clear-date">Clear date to suspend indefinitely</a></p> |
890 |
</div> |
891 |
<div class="modal-footer"> |
892 |
<button class="btn btn-primary"><i class="fa fa-check" aria-hidden="true"></i> Suspend</button> |
893 |
<button data-dismiss="modal" class="btn btn-secondary"><i class="fa fa-remove" aria-hidden="true"></i> Do not suspend</button> |
894 |
</div> |
895 |
</form> |
896 |
</div> <!-- /.modal-content --> |
897 |
</div> <!-- /.modal-dialog --> |
898 |
</div> <!-- /#suspendModal --> |
899 |
|
868 |
[% IF ( OverDriveCirculation ) %] |
900 |
[% IF ( OverDriveCirculation ) %] |
869 |
[% INCLUDE 'overdrive-checkout.inc' %] |
901 |
[% INCLUDE 'overdrive-checkout.inc' %] |
870 |
[% IF ( Koha.Preference('OverDrivePasswordRequired') ) %] |
902 |
[% IF ( Koha.Preference('OverDrivePasswordRequired') ) %] |
Lines 941-946
Link Here
|
941 |
})($(this)) |
973 |
})($(this)) |
942 |
}); |
974 |
}); |
943 |
|
975 |
|
|
|
976 |
/* We initiate this flatpickr instance here so that we can use the variable later */ |
977 |
var suspend_until_date = $("#suspend_untilDate").flatpickr({ |
978 |
minDate: "today" |
979 |
}); |
980 |
|
981 |
$(".suspend_hold").on("click", function(e){ |
982 |
e.preventDefault(); |
983 |
var title = $(this).data("title"); |
984 |
var reserve_id = $(this).data("reserve_id"); |
985 |
$("#suspendHoldReserveId").val( reserve_id ); |
986 |
$("#suspendHoldTitle").html( "<em>" + title + "</em>" ); |
987 |
$("#suspendHoldModal").modal("show"); |
988 |
}); |
989 |
|
990 |
$("#suspend-modal-clear-date").on( "click", function(e) { |
991 |
e.preventDefault(); |
992 |
suspend_until_date.clear(); |
993 |
}); |
994 |
|
995 |
$("#suspendHoldModal").on("hidden.bs.modal", function(){ |
996 |
$("#suspendHoldTitle").html(""); |
997 |
$("#suspendHoldReserveId").val(""); |
998 |
suspend_until_date.clear(); |
999 |
}); |
1000 |
|
944 |
$("#suspend_all_submit").on("click", function(e){ |
1001 |
$("#suspend_all_submit").on("click", function(e){ |
945 |
e.preventDefault(); |
1002 |
e.preventDefault(); |
946 |
var title = _("Are you sure you want to suspend all holds?"); |
1003 |
var title = _("Are you sure you want to suspend all holds?"); |
947 |
- |
|
|