Interactive interface for browsing global, full-resolution satellite imagery
Brought back full-row click to check checkbox - Added new header wrapper in layer, so that clicking the expanded description won't check the checkbox, only the initial header row will
ZachTRice4ae56c002240
diff --git a/web/css/wv.layers.modal.css b/web/css/wv.layers.modal.cssindex 41d957d76..6964915bc 100644--- a/web/css/wv.layers.modal.css+++ b/web/css/wv.layers.modal.css@@ -274,9 +274,11 @@#selected-category{color: #ddd;}-#layers-all .layers-all-layer {- padding: .5em .5em .5em .7em;+ padding-bottom: .5em;+}+#layers-all .layers-all-header {+ padding: .5em .5em 0 0;}#selected-category .ui-accordion-header,#layers-all .layers-all-layer {@@ -400,6 +402,7 @@#layers-all .source-metadata {border-top-width: 1px;color: #ddd;+ padding-right: 1.2em;}.source-metadata h1{color: #ddd;diff --git a/web/js/layers/wv.layers.modal.js b/web/js/layers/wv.layers.modal.jsindex c0c51e0d5..b4db76fac 100644--- a/web/js/layers/wv.layers.modal.js+++ b/web/js/layers/wv.layers.modal.js@@ -393,6 +393,14 @@ wv.layers.modal = wv.layers.modal || function(models, ui, config) {.attr("data-layer", encodeURIComponent(current.id)).addClass('layers-all-layer');++ var $layerHeader = $('<div></div>')+ .addClass('layers-all-header')+ .click(function(e) {+ $(this).find('input#' + encodeURIComponent(current.id))+ .iCheck('toggle');+ });+var $layerTitle = $( '<h3></h3>' ).text( current.title );@@ -435,12 +443,13 @@ wv.layers.modal = wv.layers.modal || function(models, ui, config) {redoScrollbar();});- $layerItem.append( $checkbox );- $layerItem.append( $layerTitle );+ $layerItem.append( $layerHeader );+ $layerHeader.append( $checkbox );+ $layerHeader.append( $layerTitle );if( current.description ) {$layerTitle.append( $showMore );}- $layerItem.append( $layerSubtitle );+ $layerHeader.append( $layerSubtitle );if( current.description ) {$.get('config/metadata/' + current.description + '.html')