Completed
Pull Request — master (#48)
by
unknown
03:20
created

Admin.flashMessage.show   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 6
rs 9.4285
c 1
b 0
f 0
cc 1
nc 1
nop 2
1
Admin.flashMessage = {
0 ignored issues
show
Bug introduced by
The variable Admin seems to be never declared. If this is a global, consider adding a /** global: Admin */ 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
    show: function(type, message) {
3
        var flash = $('#flash-' + type);
4
5
        flash.find('.flash-content').html(message);
6
        flash.show();
7
    },
8
    hide: function(type) {
9
        if(type) {
10
            $('#flash-' + type).hide();
11
            
12
            return;
13
        }
14
        
15
        $('.js-flash').hide();
16
    }
17
};
18
19
20