assets/app.js   A
last analyzed

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 21
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 2
dl 0
loc 21
rs 10
c 2
b 0
f 0
cc 0
nc 1
mnd 0
bc 2
fnc 2
bpm 1
cpm 1
noi 0
1
$(document).ready(function () {
2
3
    /**
4
     * Use datepicker for date fields.
5
     */
6
    $(".datepicker").datepicker({
7
        "format": "yyyy-mm-dd",
8
    });
9
10
    /**
11
     * Set focus to the primary input.
12
     */
13
    $(".focus-me").focus();
14
15
    /**
16
     * For 'nav-only' submit buttons, disable all required inputs.
17
     */
18
    $(":input.nav-only").click(function () {
19
        $(this).parents("form").find(":input[required]").prop("required", false);
20
    });
21
});
22