Interactive interface for browsing global, full-resolution satellite imagery
added onClose prop to anim widget
Benjamin1db7b5337acd
diff --git a/web/js/animation/wv.anim.widget.js b/web/js/animation/wv.anim.widget.jsindex b81f3c8b5..a91ff864a 100644--- a/web/js/animation/wv.anim.widget.js+++ b/web/js/animation/wv.anim.widget.js@@ -39,14 +39,15 @@ wv.anim.widget = wv.anim.widget || function(models, config, ui) {startDate: new Date(model.rangeState.startDate),endDate: new Date(model.rangeState.endDate),minDate: models.date.minDate(),- maxDate: models.date.maxDate()+ maxDate: models.date.maxDate(),+ onClose: self.toggleAnimationWidget+});//mount react componentself.reactComponent = ReactDOM.render(Widget, $('#wv-animation-widet-case')[0]);$timelineFooter = $('#timeline-footer');$animateButton.on('click', self.toggleAnimationWidget);- $('#wv-animation-widet .wv-close').on('click', self.toggleAnimationWidget);if(model.rangeState.state === 'on') { // show animation widget if active in permalink$timelineFooter.toggleClass('wv-anim-active');}