Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Completed
Push — master ( d3ad00...acd091 )
by Pierre
04:27
created

itemview.js ➔ ... ➔ Mn.View.extend.constructor   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 23

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 23
rs 9.0856
c 0
b 0
f 0
1
define(['marionette', 'jquery', 'core/ajaxmodal', 'bootstrap.modalmanager'], function(Mn, $) {
2
    "use strict";
3
4
    return Mn.View.extend({
5
        constructor: function(options) {
6
            this.listenTo(this, 'render', function() {
7
                setTimeout(function() {
8
                    var select2 = this.$('select.select2');
9
                    if (select2.length) {
10
                        require(['jquery.select2'], function() {
11
                            select2.select2({
12
                                allowClear: true
13
                            });
14
                        });
15
                    }
16
17
                    var tooltip = this.$('*[rel=tooltip]');
18
                    if (tooltip.length) {
19
                        require(['bootstrap'], function() {
20
                            tooltip.tooltip();
21
                        });
22
                    }
23
                }, 0);
24
            });
25
26
            Mn.View.call(this, options);
27
        },
28
        showLoader: function() {
29
            return this.$el.modalmanager('loading');
30
        },
31
        hideLoader: function() {
32
            return this.$el.modalmanager('loading');
33
        }
34
    });
35
});
36