https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32392

--- Comment #7 from Marcel de Rooy <[email protected]> ---
Do not understand why we add this to serial-EDIT here ?

+        $("form").on("submit", function(){
+                let issues = $('input[name="skip_issues"]').val() ?
$('input[name="skip_issues"]').val() : '';
+                let too_many = _("Choose a value between 0-10 in issues to
skip!");
+                let no_number = _("Not a number in skip issues!");
+
+                if ( issues == '' || ( issues.match(/^\d+$/) && issues <= 10 )
 ) {
+                    return true;
+                }
+                else if ( issues.match(/^\d+$/) && issues > 10  ) {
+                    alert(too_many);
+                    return false;
+                }  else if ( !issues.match(/^\d+$/) ) {
+                    alert(no_number);
+                    return false;
+                }
+                else {
+                    return false;
+                }
+            });

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to