Lines 1067-1072
Link Here
|
1067 |
</div> |
1067 |
</div> |
1068 |
</div> |
1068 |
</div> |
1069 |
|
1069 |
|
|
|
1070 |
<div id="suspend-modal" class="modal" role="dialog" aria-hidden="true"> |
1071 |
<div class="modal-dialog"> |
1072 |
<div class="modal-content"> |
1073 |
<form id="suspend-modal-form" class="form-inline" name="suspend-modal-form" action="request.pl" method="post"> |
1074 |
<div class="modal-header"> |
1075 |
<button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> |
1076 |
<h3 id="suspend-modal-label">Suspend hold on<em><span id="suspend-modal-title"></span></em></h3> |
1077 |
</div> |
1078 |
<div class="modal-body"> |
1079 |
<input type="hidden" name="action" value="toggleSuspend" /> |
1080 |
<input type="hidden" id="suspend-modal-borrowernumber" name="borrowernumber" /> |
1081 |
<input type="hidden" id="suspend-modal-biblionumber" name="biblionumber" /> |
1082 |
<input type="hidden" id="suspend-modal-date" name="date" /> |
1083 |
<input type="hidden" id="suspend-modal-reserve_id" name="reserve_id" /> |
1084 |
<label for="suspend-modal-until">Suspend until:</label> |
1085 |
<input name="suspend_until" id="suspend-modal-until" class="suspend-until" size="10" /> |
1086 |
<p><a class="btn btn-link" id="suspend-modal-clear-date" ><i class="fa fa-remove" aria-hidden="true"></i> Clear date to suspend indefinitely</a></p> |
1087 |
</div> |
1088 |
<div class="modal-footer"> |
1089 |
<button id="suspend-modal-submit" class="btn btn-default" type="submit">Suspend</button> |
1090 |
<a href="#" data-dismiss="modal" aria-hidden="true" class="cancel">Cancel</a> |
1091 |
</div> |
1092 |
</form> |
1093 |
</div> |
1094 |
</div> |
1095 |
</div> |
1096 |
|
1070 |
[% MACRO jsinclude BLOCK %] |
1097 |
[% MACRO jsinclude BLOCK %] |
1071 |
[% INCLUDE 'datatables.inc' %] |
1098 |
[% INCLUDE 'datatables.inc' %] |
1072 |
[% INCLUDE 'calendar.inc' %] |
1099 |
[% INCLUDE 'calendar.inc' %] |
Lines 1148-1154
Link Here
|
1148 |
[% END %] |
1175 |
[% END %] |
1149 |
|
1176 |
|
1150 |
[% IF AutoResumeSuspendedHolds %] |
1177 |
[% IF AutoResumeSuspendedHolds %] |
1151 |
$(".suspend_until_datepicker").flatpickr({ |
1178 |
$(".suspend-until").flatpickr({ |
1152 |
minDate: new Date().fp_incr(1) /* Require that "until date" be in the future */ |
1179 |
minDate: new Date().fp_incr(1) /* Require that "until date" be in the future */ |
1153 |
}); |
1180 |
}); |
1154 |
[% END %] |
1181 |
[% END %] |
Lines 1672-1706
Link Here
|
1672 |
return false; |
1699 |
return false; |
1673 |
}); |
1700 |
}); |
1674 |
|
1701 |
|
1675 |
$("body").append("\ |
|
|
1676 |
<div id='suspend-modal' class='modal' role='dialog' aria-hidden='true'>\ |
1677 |
<div class='modal-dialog'>\ |
1678 |
<div class='modal-content'>\ |
1679 |
<form id='suspend-modal-form' class='form-inline' name='suspend-modal-form' action='request.pl' method='post'>\ |
1680 |
<div class='modal-header'>\ |
1681 |
<button type='button' class='closebtn' data-dismiss='modal' aria-hidden='true'>×</button>\ |
1682 |
<h3 id='suspend-modal-label'>" + _("Suspend hold on") + " <em><span id='suspend-modal-title'></span></em></h3>\ |
1683 |
</div>\ |
1684 |
<div class='modal-body'>\ |
1685 |
<input type='hidden' name='action' value='toggleSuspend' />\ |
1686 |
<input type='hidden' id='suspend-modal-borrowernumber' name='borrowernumber' />\ |
1687 |
<input type='hidden' id='suspend-modal-biblionumber' name='biblionumber' />\ |
1688 |
<input type='hidden' id='suspend-modal-date' name='date' />\ |
1689 |
<input type='hidden' id='suspend-modal-reserve_id' name='reserve_id' />\ |
1690 |
<label for='suspend-modal-until'>" + _("Suspend until:") + "</label>\ |
1691 |
<input name='suspend_until' id='suspend-modal-until' class='suspend-until' size='10' />\ |
1692 |
<p><a class='btn btn-link' id='suspend-modal-clear-date' ><i class='fa fa-remove' aria-hidden='true'></i> " + _("Clear date to suspend indefinitely") + "</a></p>\ |
1693 |
</div>\ |
1694 |
<div class='modal-footer'>\ |
1695 |
<button id='suspend-modal-submit' class='btn btn-default' type='submit'>" + _("Suspend") + "</button>\ |
1696 |
<a href='#' data-dismiss='modal' aria-hidden='true' class='cancel'>" + _("Cancel") + "</a>\ |
1697 |
</div>\ |
1698 |
</form>\ |
1699 |
</div>\ |
1700 |
</div>\ |
1701 |
</div>\ |
1702 |
"); |
1703 |
|
1704 |
$(".hold-suspend, .hold-resume").on( "click", function(e) { |
1702 |
$(".hold-suspend, .hold-resume").on( "click", function(e) { |
1705 |
e.preventDefault(); |
1703 |
e.preventDefault(); |
1706 |
var id = $(this).data("reserve-id") |
1704 |
var id = $(this).data("reserve-id") |
1707 |
- |
|
|