@@ -5,7 +5,6 @@ var lastWeekContributionElement=document.getElementById("lastWeekContribution");
5
5
var startingDateElement = document . getElementById ( "startingDate" ) ;
6
6
var endingDateElement = document . getElementById ( "endingDate" ) ;
7
7
var showOpenLabelElement = document . getElementById ( "showOpenLabel" ) ;
8
- var showClosedLabelElement = document . getElementById ( "showClosedLabel" ) ;
9
8
var userReasonElement = document . getElementById ( "userReason" ) ;
10
9
var gsoc = 0 ; //0 means gsoc. 1 means gsoc
11
10
function handleBodyOnLoad ( ) {
@@ -34,13 +33,6 @@ function handleBodyOnLoad(){
34
33
showOpenLabelElement . checked = true ;
35
34
handleOpenLabelChange ( ) ;
36
35
}
37
- if ( items . showClosedLabel ) {
38
- showClosedLabelElement . checked = items . showClosedLabel ;
39
- }
40
- else if ( items . showClosedLabel !== false ) {
41
- showClosedLabelElement . checked = true ;
42
- handleClosedLabelChange ( ) ;
43
- }
44
36
if ( items . userReason ) {
45
37
userReasonElement . value = items . userReason ;
46
38
}
@@ -116,6 +108,7 @@ function handleGithubUsernameChange(){
116
108
function handleOpenLabelChange ( ) {
117
109
var value = showOpenLabelElement . checked ;
118
110
chrome . storage . local . set ( { "showOpenLabel" : value } ) ;
111
+ chrome . storage . local . set ( { "showClosedLabel" : value } ) ;
119
112
}
120
113
function handleClosedLabelChange ( ) {
121
114
var value = showClosedLabelElement . checked ;
@@ -147,12 +140,7 @@ startingDateElement.addEventListener("keyup", handleStartingDateChange);
147
140
endingDateElement . addEventListener ( "keyup" , handleEndingDateChange ) ;
148
141
lastWeekContributionElement . addEventListener ( "change" , handleLastWeekContributionChange ) ;
149
142
showOpenLabelElement . addEventListener ( "change" , handleOpenLabelChange ) ;
150
- showClosedLabelElement . addEventListener ( "change" , handleClosedLabelChange ) ;
151
143
userReasonElement . addEventListener ( "keyup" , handleUserReasonChange ) ;
152
144
document . addEventListener ( "DOMContentLoaded" , handleBodyOnLoad ) ;
153
145
document . getElementById ( "codeheatTab" ) . addEventListener ( "click" , handleCodeheatClick ) ;
154
146
document . getElementById ( "gsocTab" ) . addEventListener ( "click" , handleGsocClick ) ;
155
- chrome . runtime . onMessage . addListener (
156
- function ( request , sender , sendResponse ) {
157
- chrome . notifications . create ( "Updated SCRUM!" ) ;
158
- } ) ;
0 commit comments