PageSourceSearch

https://tortorabrayda.org/environments/dashboard/base/scripts/_validation.js?v=1790863893

js tortorabrayda.org collected 2026-10-01 15:25:36 UTC 735 bytes, 39 lines download raw bytes

1/*
2    VALIDATION 
3*/
4
5function validation(scope)
6{
7    var errors = [];
8
9    if (typeof (scope) == 'undefined')
10    {
11        scope = $('form');
12    }
13    else
14    {
15        scope = $(scope);
16    }
17
18    $('.formRow', scope).removeClass('validationError');
19
20    $('input, textarea', scope).each(function (index, element)
21    {
22        var field = $(this);
23
24        if (field.hasClass('required') == true && $.trim(field.val()) == '')
25        {
26            field.parents('.formRow').addClass('validationError');
27            errors.push(field.attr('name') + ' is verplicht');
28        }
29    });
30
31    if (errors.length > 0)
32    {
33        return false;
34    }
35    else
36    {
37        return true;
38    }
39}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.