templates/notify/alert.js   A
last analyzed

Complexity

Total Complexity 4
Complexity/F 1

Size

Lines of Code 14
Function Count 4

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 9
c 0
b 0
f 0
dl 0
loc 14
rs 10
wmc 4
mnd 0
bc 0
fnc 4
bpm 0
cpm 1
noi 5
1
jaxon.dialogs.notify = {
0 ignored issues
show
Bug introduced by
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
    success: function(content, title) {
0 ignored issues
show
Unused Code introduced by
The parameter title is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
3
        $.notify(content, {className: 'success', position: "top center"});
4
    },
5
    info: function(content, title) {
0 ignored issues
show
Unused Code introduced by
The parameter title is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
6
        $.notify(content, {className: 'info', position: "top center"});
7
    },
8
    warning: function(content, title) {
0 ignored issues
show
Unused Code introduced by
The parameter title is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
9
        $.notify(content, {className: 'warn', position: "top center"});
10
    },
11
    error: function(content, title) {
0 ignored issues
show
Unused Code introduced by
The parameter title is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
12
        $.notify(content, {className: 'error', position: "top center"});
13
    }
14
};
15