web/assets/js/app.js   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 14

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 14
rs 9.4285
c 3
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A $(document).ready 0 12 1
1
(function ($) {
2
    $(document).ready(function () {
3
        $("h1").slabText({
4
            // Don't slabtext the headers if the viewport is under 380px
5
            "viewportBreakpoint": 380
6
        });
7
        $('select').chosen({
8
            allow_single_deselect: true,
9
            placeholder_text: Translator.trans('select.multiple', {}, 'common'),
0 ignored issues
show
Bug introduced by
The variable Translator seems to be never declared. If this is a global, consider adding a /** global: Translator */ 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...
10
            width: '100%'
11
        });
12
        $('#loading').fadeOut();
13
    });
14
})(jQuery);