|
Lines 126-132
$(document).ready(function () {
Link Here
|
| 126 |
url: "/api/v1/holds/" + encodeURIComponent(hold_id) + "/suspension", |
126 |
url: "/api/v1/holds/" + encodeURIComponent(hold_id) + "/suspension", |
| 127 |
}).done(function () { |
127 |
}).done(function () { |
| 128 |
if ($(".select_hold_all").prop("checked")) { |
128 |
if ($(".select_hold_all").prop("checked")) { |
| 129 |
$(".select_hold_all").click(); |
129 |
$(".select_hold_all").prop("checked", false); |
|
|
130 |
$(".holds_table .select_hold").prop("checked", false); |
| 131 |
updateSelectedHoldsButtonCounters(); |
| 130 |
} |
132 |
} |
| 131 |
}); |
133 |
}); |
| 132 |
} |
134 |
} |
|
Lines 659-665
$(document).ready(function () {
Link Here
|
| 659 |
$("#suspend-modal-until").flatpickr().clear(); // clean the input |
661 |
$("#suspend-modal-until").flatpickr().clear(); // clean the input |
| 660 |
} |
662 |
} |
| 661 |
$("#suspend-modal").modal("hide"); |
663 |
$("#suspend-modal").modal("hide"); |
| 662 |
$(".select_hold_all").click(); |
664 |
$(".select_hold_all").prop("checked", false); |
|
|
665 |
$(".holds_table .select_hold").prop("checked", false); |
| 666 |
updateSelectedHoldsButtonCounters(); |
| 663 |
}); |
667 |
}); |
| 664 |
} catch (error) { |
668 |
} catch (error) { |
| 665 |
if (error.status === 404) { |
669 |
if (error.status === 404) { |
|
Lines 1209-1215
$(document).ready(function () {
Link Here
|
| 1209 |
.done(function () { |
1213 |
.done(function () { |
| 1210 |
$("#cancelModal").modal("hide"); |
1214 |
$("#cancelModal").modal("hide"); |
| 1211 |
if ($(".select_hold_all").prop("checked")) { |
1215 |
if ($(".select_hold_all").prop("checked")) { |
| 1212 |
$(".select_hold_all").click(); |
1216 |
$(".select_hold_all").prop("checked", false); |
|
|
1217 |
$(".holds_table .select_hold").prop("checked", false); |
| 1218 |
updateSelectedHoldsButtonCounters(); |
| 1213 |
} |
1219 |
} |
| 1214 |
}); |
1220 |
}); |
| 1215 |
}); |
1221 |
}); |
|
Lines 1254-1260
$(document).ready(function () {
Link Here
|
| 1254 |
}) |
1260 |
}) |
| 1255 |
.done(function () { |
1261 |
.done(function () { |
| 1256 |
$("#group-modal").modal("hide"); |
1262 |
$("#group-modal").modal("hide"); |
| 1257 |
$(".select_hold_all").click(); |
1263 |
$(".select_hold_all").prop("checked", false); |
|
|
1264 |
$(".holds_table .select_hold").prop("checked", false); |
| 1265 |
updateSelectedHoldsButtonCounters(); |
| 1258 |
}); |
1266 |
}); |
| 1259 |
} catch (error) { |
1267 |
} catch (error) { |
| 1260 |
if (error.status === 404) { |
1268 |
if (error.status === 404) { |
| 1261 |
- |
|
|