|
Lines 12-37
Link Here
|
| 12 |
$('#multi_receiving').on('show', function () { |
12 |
$('#multi_receiving').on('show', function () { |
| 13 |
$(this).find(".modal-body").html($(".serials_multi_receiving")[0].outerHTML); |
13 |
$(this).find(".modal-body").html($(".serials_multi_receiving")[0].outerHTML); |
| 14 |
}); |
14 |
}); |
| 15 |
|
|
|
| 16 |
$("form").on("submit", function(){ |
| 17 |
let issues = $('input[name="skip_issues"]').val() ? $('input[name="skip_issues"]').val() : ''; |
| 18 |
let too_many = _("Choose a value between 0-10 in issues to skip!"); |
| 19 |
let no_number = _("Not a number in skip issues!"); |
| 20 |
|
| 21 |
if ( issues == '' || ( issues.match(/^\d+$/) && issues <= 10 ) ) { |
| 22 |
return true; |
| 23 |
} |
| 24 |
else if ( issues.match(/^\d+$/) && issues > 10 ) { |
| 25 |
alert(too_many); |
| 26 |
return false; |
| 27 |
} else if ( !issues.match(/^\d+$/) ) { |
| 28 |
alert(no_number); |
| 29 |
return false; |
| 30 |
} |
| 31 |
else { |
| 32 |
return false; |
| 33 |
} |
| 34 |
}); |
| 35 |
}); |
15 |
}); |
| 36 |
|
16 |
|
| 37 |
function popup(subscriptionid) { |
17 |
function popup(subscriptionid) { |
|
Lines 356-362
$(document).ready(function() {
Link Here
|
| 356 |
[% END %] |
336 |
[% END %] |
| 357 |
[% END %] |
337 |
[% END %] |
| 358 |
<tr> |
338 |
<tr> |
| 359 |
<td colspan="6">Skip issues:<input type="checkbox" id="toggle_skip_issues"> <input id="skip_issues" type="text" pattern="^\d+$" name="skip_issues" class="collapse" value="1" disabled required="required"/></td> |
339 |
<td colspan="6">Skip issues:<input type="checkbox" id="toggle_skip_issues"> <input id="skip_issues" type="text" pattern="^\d$" name="skip_issues" class="collapse" value="1" disabled required="required"/></td> |
| 360 |
</tr> |
340 |
</tr> |
| 361 |
[% FOREACH newserialloo IN newserialloop %] |
341 |
[% FOREACH newserialloo IN newserialloop %] |
| 362 |
[% UNLESS ( newserialloo.subscriptionexpired ) %] |
342 |
[% UNLESS ( newserialloo.subscriptionexpired ) %] |