File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -43,16 +43,16 @@ <h6 class="center">
43
43
< div class ="col s12 "> < span > Date should be in YYYY-MM-DD format</ span > </ div >
44
44
< div class ="col s12 ">
45
45
< br />
46
- < input type ="checkbox " class ="filled-in " id ="showOpenLabel " />
46
+ < input type ="checkbox " class ="filled-in " id ="showOpenLabel "/>
47
47
< label for ="showOpenLabel "> Show Open Label</ label >
48
48
</ div >
49
49
< div class ="col s12 ">
50
- < input type ="checkbox " class ="filled-in " id ="showClosedLabel " />
50
+ < input type ="checkbox " class ="filled-in " id ="showClosedLabel "/>
51
51
< label for ="showClosedLabel "> Show Closed Label</ label >
52
52
</ div >
53
53
< div class ="input-field col s12 ">
54
54
< input placeholder ="Reason " id ="userReason " type ="text ">
55
- < label for ="UserReason "> What is stopping you from doing your work?</ label >
55
+ < label for ="userReason "> What is stopping you from doing your work?</ label >
56
56
</ div >
57
57
< div class ="col center s12 ">
58
58
< br /> < br />
Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ function handleBodyOnLoad(){
15
15
if ( items . enableToggle ) {
16
16
enableToggleElement . checked = items . enableToggle ;
17
17
}
18
+ else if ( items . enableToggle !== false ) { // undefined
19
+ enableToggleElement . checked = true ;
20
+ handleEnableChange ( ) ;
21
+ }
18
22
if ( items . endingDate ) {
19
23
endingDateElement . value = items . endingDate ;
20
24
}
@@ -24,9 +28,17 @@ function handleBodyOnLoad(){
24
28
if ( items . showOpenLabel ) {
25
29
showOpenLabelElement . checked = items . showOpenLabel ;
26
30
}
31
+ else if ( items . showOpenLabel !== false ) { // undefined
32
+ showOpenLabelElement . checked = true ;
33
+ handleOpenLabelChange ( ) ;
34
+ }
27
35
if ( items . showClosedLabel ) {
28
36
showClosedLabelElement . checked = items . showClosedLabel ;
29
37
}
38
+ else if ( items . showClosedLabel !== false ) {
39
+ showClosedLabelElement . checked = true ;
40
+ handleClosedLabelChange ( ) ;
41
+ }
30
42
if ( items . userReason ) {
31
43
userReasonElement . value = items . userReason ;
32
44
}
You can’t perform that action at this time.
0 commit comments