Issues (79)

templates/pgwjs/alert.js (3 issues)

Labels
Severity
1
jaxon.dialogs.pgwjs = {
0 ignored issues
show
The variable jaxon seems to be never declared. If this is a global, consider adding a /** global: jaxon */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
2
    defaults: {maxWidth: 400},
3
    options: {},
4
    show: function(args) {
5
        // Set user and default options into data only when they are missing
6
        for(key in jaxon.dialogs.pgwjs.options)
0 ignored issues
show
The variable jaxon seems to be never declared. If this is a global, consider adding a /** global: jaxon */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
The variable key seems to be never declared. Assigning variables without defining them first makes them global. If this was intended, consider making it explicit like using window.key.
Loading history...
7
        {
8
            if(!(key in args.data))
9
            {
10
                args.data[key] = jaxon.dialogs.pgwjs.options[key];
11
            }
12
        }
13
        for(key in jaxon.dialogs.pgwjs.defaults)
14
        {
15
            if(!(key in args.data))
16
            {
17
                args.data[key] = jaxon.dialogs.pgwjs.defaults[key];
18
            }
19
        }
20
        $.pgwModal(args.data);
21
    }
22
};
23