resources/js/vendors/select2.js   A
last analyzed

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 19
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 7
c 0
b 0
f 0
dl 0
loc 19
rs 10
wmc 1
mnd 0
bc 0
fnc 1
bpm 0
cpm 1
noi 0
1
$(document).ready(function () {
2
3
    /**
4
     * Add Select2 single selection to all the divs with class .select2
5
     */
6
    $(".select2").select2({
7
        placeholder: "Select one",
8
        width: '100%'
9
    });
10
11
    /**
12
     * Add Select2 multiple selection to all the divs with class .select2-multiple
13
     */
14
    $(".select2-multiple").select2({
15
        placeholder: "Select one or more",
16
        width: '100%',
17
    });
18
19
});