Skip to content

Commit

Permalink
Merge pull request #25 from mailchimp/fix/js-linting
Browse files Browse the repository at this point in the history
Updates JavaScript for linting
  • Loading branch information
dkotter authored Jun 7, 2024
2 parents fb30ec9 + cf26f55 commit ddcdcf7
Show file tree
Hide file tree
Showing 67 changed files with 42 additions and 4,647 deletions.
2 changes: 0 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
js/i18n
js/datepicker.js
js/scrollTo.js
tests
1,815 changes: 0 additions & 1,815 deletions js/datepicker.js

This file was deleted.

30 changes: 13 additions & 17 deletions js/hidecss.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
/* show/hide on checkbox click */
function showMe (box) {

var chboxs = document.getElementsByName("mc_nuke_all_styles");
var vis = "none";
for(var i=0;i<chboxs.length;i++) {
if(chboxs[i].checked){
vis = "none";
}
else{
var vis = "";
vis = "";
}
}
document.getElementById(box).style.display = vis;


}
// eslint-disable-next-line no-unused-vars -- used on window on click
function showMe(box) {
const chboxs = document.getElementsByName('mc_nuke_all_styles');
let vis = 'none';
for (let i = 0; i < chboxs.length; i++) {
if (chboxs[i].checked) {
vis = 'none';
} else {
vis = '';
}
}
document.getElementById(box).style.display = vis;
}
1,379 changes: 0 additions & 1,379 deletions js/i18n/jquery-ui-i18n.js

This file was deleted.

23 changes: 0 additions & 23 deletions js/i18n/jquery.ui.datepicker-af.js

This file was deleted.

23 changes: 0 additions & 23 deletions js/i18n/jquery.ui.datepicker-ar-DZ.js

This file was deleted.

23 changes: 0 additions & 23 deletions js/i18n/jquery.ui.datepicker-ar.js

This file was deleted.

23 changes: 0 additions & 23 deletions js/i18n/jquery.ui.datepicker-az.js

This file was deleted.

24 changes: 0 additions & 24 deletions js/i18n/jquery.ui.datepicker-bg.js

This file was deleted.

23 changes: 0 additions & 23 deletions js/i18n/jquery.ui.datepicker-bs.js

This file was deleted.

23 changes: 0 additions & 23 deletions js/i18n/jquery.ui.datepicker-ca.js

This file was deleted.

23 changes: 0 additions & 23 deletions js/i18n/jquery.ui.datepicker-cs.js

This file was deleted.

23 changes: 0 additions & 23 deletions js/i18n/jquery.ui.datepicker-da.js

This file was deleted.

23 changes: 0 additions & 23 deletions js/i18n/jquery.ui.datepicker-de.js

This file was deleted.

23 changes: 0 additions & 23 deletions js/i18n/jquery.ui.datepicker-el.js

This file was deleted.

23 changes: 0 additions & 23 deletions js/i18n/jquery.ui.datepicker-en-AU.js

This file was deleted.

23 changes: 0 additions & 23 deletions js/i18n/jquery.ui.datepicker-en-GB.js

This file was deleted.

23 changes: 0 additions & 23 deletions js/i18n/jquery.ui.datepicker-en-NZ.js

This file was deleted.

Loading

0 comments on commit ddcdcf7

Please sign in to comment.