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 354-360
$(document).ready(function() {
Link Here
|
354 |
[% END %] |
334 |
[% END %] |
355 |
[% END %] |
335 |
[% END %] |
356 |
<tr> |
336 |
<tr> |
357 |
<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> |
337 |
<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> |
358 |
</tr> |
338 |
</tr> |
359 |
[% FOREACH newserialloo IN newserialloop %] |
339 |
[% FOREACH newserialloo IN newserialloop %] |
360 |
[% UNLESS ( newserialloo.subscriptionexpired ) %] |
340 |
[% UNLESS ( newserialloo.subscriptionexpired ) %] |