PageSourceSearch

https://app.hellohrm.com/users/js/src/cb.users.access.js?v=1790258291

js hellohrm.com collected 2026-09-24 13:58:26 UTC 1,810 bytes, 55 lines download raw bytes

1// User Access Class
2
3CB.Users.Access = function(){
4
5    var _initForm = function(form){
6        var fields = {
7                title: {
8                    validators: {
9                        notEmpty: {
10                            message: "Access name is required!"
11                        },
12                        callback: {
13                            message: 'Access name can not be whitespace',
14                            callback: function (input) {
15                                return input.value.length > 0 && input.value.trim().length === 0 ? false : true;
16                            },
17                        }
18                    }
19                },
20                type: {
21                    validators: {
22                        notEmpty: {
23                            message: "Access type is required!"
24                        }
25                    }
26                }
27            };
28        CB.Lib.formValid(form, fields);
29    }
30
31
32    return {
33        init: function(){
34            if($("#submit_form")[0]){
35                _initForm($("#submit_form")[0]);
36            }
37
38            $('.user-access-view-checkbox').on('click', function(){
39                if(!$(this).is(':checked')){
40                    $(this).closest('.user-access-table-column').find('.user-access-other-checkbox').prop( "checked", false);
41                }
42            })
43
44            $('.user-access-other-checkbox').on('click', function(){
45                if(!$(this).closest('.user-access-table-column').find('.user-access-view-checkbox').is(':checked')){
46                    $(this).closest('.user-access-table-column').find('.user-access-view-checkbox').prop( "checked", true);
47                }
48            });
49        }
50    }
51}();
52
53jQuery(document).ready(function(){
54    CB.Users.Access.init();
55});

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.