Total Complexity | 2 |
Complexity/F | 1 |
Lines of Code | 21 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 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 |