Interactive interface for browsing global, full-resolution satellite imagery
add inactive class to A|B draggers #1119
Benjamin King907137ec6ba3
diff --git a/web/js/date/compare-picks.js b/web/js/date/compare-picks.jsindex f8f082c7a..8519ddaec 100644--- a/web/js/date/compare-picks.js+++ b/web/js/date/compare-picks.js@@ -70,10 +70,16 @@ export function timelineCompare(models, config, ui) {var applyActiveClasses = function() {if (models.compare.isCompareA) {mountObjectA.setAttribute('class', 'ab-group-case ab-group-case-active');- mountObjectB.setAttribute('class', 'ab-group-case');+ mountObjectB.setAttribute(+ 'class',+ 'ab-group-case ab-group-case-inactive'+ );parentSvg.insertBefore(mountObjectB, mountObjectA);} else {- mountObjectA.setAttribute('class', 'ab-group-case ');+ mountObjectA.setAttribute(+ 'class',+ 'ab-group-case ab-group-case-inactive'+ );mountObjectB.setAttribute('class', 'ab-group-case ab-group-case-active');parentSvg.insertBefore(mountObjectA, mountObjectB);}