Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Add `iCheck iCheck-checkbox` classes to fix styling issue - iCheck documentation states that the default class is now `icheckbox`, our previous version used `iCheck` and `iCheck-checkbox` classes.

ZachTRice7e83ef1ac425
diff --git a/web/js/layers/add.js b/web/js/layers/add.js
index 0df4b496d..70a9f4825 100644
--- a/web/js/layers/add.js
+++ b/web/js/layers/add.js
@@ -107,7 +107,7 @@ export function layersAdd(models, ui, config) {
$(self.selector)
.iCheck({
- checkboxClass: 'icheckbox_square-grey'
+ checkboxClass: 'iCheck iCheck-checkbox icheckbox_square-grey'
});
updateAreasOfInterest();
diff --git a/web/js/layers/modal.js b/web/js/layers/modal.js
index 925fe1886..a3f830acf 100644
--- a/web/js/layers/modal.js
+++ b/web/js/layers/modal.js
@@ -665,7 +665,9 @@ export function layersModal(models, ui, config) {
$selectedCategory.show();
redoScrollbar();
- $selectedCategory.iCheck({checkboxClass: 'icheckbox_square-red'});
+ $selectedCategory.iCheck({
+ checkboxClass: 'iCheck iCheck-checkbox icheckbox_square-red'
+ });
};
/**