|
Lines 480-486
Link Here
|
| 480 |
var remaining = $("input[id='remaining_holds_"+id+"']").val(); |
480 |
var remaining = $("input[id='remaining_holds_"+id+"']").val(); |
| 481 |
var remaining_holds_today = $("input[id='remaining_holds_allowed_today"+id+"']").val(); |
481 |
var remaining_holds_today = $("input[id='remaining_holds_allowed_today"+id+"']").val(); |
| 482 |
var maxreserves = "[% maxreserves | html %]"; |
482 |
var maxreserves = "[% maxreserves | html %]"; |
| 483 |
console.log(maxreserves); |
|
|
| 484 |
if (nbCheked == remaining) { |
483 |
if (nbCheked == remaining) { |
| 485 |
$("input[name='checkitem_"+id+"']:not(:checked)").attr('disabled', 'disabled'); |
484 |
$("input[name='checkitem_"+id+"']:not(:checked)").attr('disabled', 'disabled'); |
| 486 |
} |
485 |
} |
|
Lines 516-522
Link Here
|
| 516 |
var remaining = $("input[id='remaining_holds_"+bibNum+"']").val(); |
515 |
var remaining = $("input[id='remaining_holds_"+bibNum+"']").val(); |
| 517 |
var remaining_holds_today = $("input[id='remaining_holds_allowed_today"+bibNum+"']").val(); |
516 |
var remaining_holds_today = $("input[id='remaining_holds_allowed_today"+bibNum+"']").val(); |
| 518 |
var maxreserves = "[% maxreserves | html %]"; |
517 |
var maxreserves = "[% maxreserves | html %]"; |
| 519 |
console.log(maxreserves); |
|
|
| 520 |
if (nbCheked >= remaining) { |
518 |
if (nbCheked >= remaining) { |
| 521 |
$("input[name='checkitem_"+bibNum+"']:not(:checked)").attr('disabled', 'disabled'); |
519 |
$("input[name='checkitem_"+bibNum+"']:not(:checked)").attr('disabled', 'disabled'); |
| 522 |
} |
520 |
} |
| 523 |
- |
|
|