GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Push — master ( 9950db...730c62 )
by
unknown
03:18
created

Select.selectDropdown   A

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
/**
2
 * This file is part of the O2System Venus UI Framework package.
3
 *
4
 * For the full copyright and license information, please view the LICENSE
5
 * file that was distributed with this source code.
6
 *
7
 * @author         Steeve Andrian Salim
8
 * @copyright      Copyright (c) Steeve Andrian Salim
9
 */
10
// ------------------------------------------------------------------------
11
12
import * as $ from 'jquery';
13
import 'select2';
14
import 'bootstrap-select';
15
import 'selectize';
16
17
/**
18
 * Class Select
19
 *
20
 * @author          Teguh Rianto
21
 * @package         Components
22
 */
23
export default class Select {
24
    constructor() {
25
        /**
26
         * Initiate select with search
27
         */
28
        this.selectWithSearch();
29
30
        /**
31
         * Initiate select insertable search
32
         */
33
        this.selectInsertableSearch();
34
35
        /**
36
         * Initiate select dropdown
37
         */
38
        this.selectDropdown();
39
    }
40
41
    selectWithSearch() {
42
        $(".select-with-search").select2();
43
    }
44
45
    selectInsertableSearch() {
46
        $('.select-insertable-search').selectize({
47
            create: true,
48
            sortField: 'text'
49
        });
50
51
        $('.select-with-tags').selectize({
52
            delimiter: ',',
53
            persist: false,
54
            create: function (input) {
55
                return {
56
                    value: input,
57
                    text: input
58
                }
59
            }
60
        });
61
    }
62
63
    selectDropdown() {
64
        $('.select-dropdown').selectpicker();
65
    }
66
}