@@ -256,8 +256,8 @@ document.addEventListener('DOMContentLoaded', function () {
256
256
257
257
const startDateInput = document . getElementById ( 'startingDate' ) ;
258
258
const endDateInput = document . getElementById ( 'endingDate' ) ;
259
- startDateInput . disabled = false ;
260
- endDateInput . disabled = false ;
259
+ startDateInput . readOnly = false ;
260
+ endDateInput . readOnly = false ;
261
261
262
262
chrome . storage . local . set ( {
263
263
lastWeekContribution : false ,
@@ -294,9 +294,8 @@ document.addEventListener('DOMContentLoaded', function () {
294
294
startDateInput . value = getYesterday ( ) ;
295
295
endDateInput . value = getToday ( ) ;
296
296
}
297
-
298
- startDateInput . disabled = endDateInput . disabled = true ;
299
-
297
+ startDateInput . readOnly = endDateInput . readOnly = true ;
298
+
300
299
chrome . storage . local . set ( {
301
300
startingDate : startDateInput . value ,
302
301
endingDate : endDateInput . value ,
@@ -369,7 +368,7 @@ document.addEventListener('DOMContentLoaded', function () {
369
368
. then ( res => {
370
369
console . log ( '[Org Check] Response status for' , org , ':' , res . status ) ;
371
370
if ( res . status === 404 ) {
372
- console . log ( '[Org Check] Organisation not found on GitHub:' , org ) ;
371
+ console . log ( '[Org Check] Organization not found on GitHub:' , org ) ;
373
372
const oldToast = document . getElementById ( 'invalid-org-toast' ) ;
374
373
if ( oldToast ) oldToast . parentNode . removeChild ( oldToast ) ;
375
374
const toastDiv = document . createElement ( 'div' ) ;
@@ -385,7 +384,7 @@ document.addEventListener('DOMContentLoaded', function () {
385
384
toastDiv . style . left = '50%' ;
386
385
toastDiv . style . transform = 'translateX(-50%)' ;
387
386
toastDiv . style . zIndex = '9999' ;
388
- toastDiv . innerText = 'Organisation not found on GitHub.' ;
387
+ toastDiv . innerText = 'Organization not found on GitHub.' ;
389
388
document . body . appendChild ( toastDiv ) ;
390
389
setTimeout ( ( ) => {
391
390
if ( toastDiv . parentNode ) toastDiv . parentNode . removeChild ( toastDiv ) ;
@@ -395,6 +394,7 @@ document.addEventListener('DOMContentLoaded', function () {
395
394
const oldToast = document . getElementById ( 'invalid-org-toast' ) ;
396
395
if ( oldToast ) oldToast . parentNode . removeChild ( oldToast ) ;
397
396
console . log ( '[Org Check] Organisation exists on GitHub:' , org ) ;
397
+ console . log ( '[Org Check] Organization exists on GitHub:' , org ) ;
398
398
chrome . storage . local . set ( { orgName : org } , function ( ) {
399
399
if ( window . generateScrumReport ) window . generateScrumReport ( ) ;
400
400
} ) ;
@@ -416,7 +416,7 @@ document.addEventListener('DOMContentLoaded', function () {
416
416
toastDiv . style . left = '50%' ;
417
417
toastDiv . style . transform = 'translateX(-50%)' ;
418
418
toastDiv . style . zIndex = '9999' ;
419
- toastDiv . innerText = 'Error validating organisation .' ;
419
+ toastDiv . innerText = 'Error validating organization .' ;
420
420
document . body . appendChild ( toastDiv ) ;
421
421
setTimeout ( ( ) => {
422
422
if ( toastDiv . parentNode ) toastDiv . parentNode . removeChild ( toastDiv ) ;
@@ -477,8 +477,8 @@ document.querySelectorAll('input[name="timeframe"]').forEach(radio => {
477
477
478
478
const startDateInput = document . getElementById ( 'startingDate' ) ;
479
479
const endDateInput = document . getElementById ( 'endingDate' ) ;
480
- startDateInput . disabled = false ;
481
- endDateInput . disabled = false ;
480
+ startDateInput . readOnly = false ;
481
+ endDateInput . readOnly = false ;
482
482
483
483
chrome . storage . local . set ( {
484
484
lastWeekContribution : false ,
@@ -550,7 +550,7 @@ function toggleRadio(radio) {
550
550
endDateInput . value = getToday ( ) ;
551
551
}
552
552
553
- startDateInput . disabled = endDateInput . disabled = true ;
553
+ startDateInput . readOnly = endDateInput . readOnly = true ;
554
554
555
555
chrome . storage . local . set ( {
556
556
startingDate : startDateInput . value ,
0 commit comments