0001-misc-exclude-map-fields-from-hide-address-part-behav.patch
wcs/qommon/static/js/qommon.geolocation.js | ||
---|---|---|
116 | 116 |
if ($('.JsonpSingleSelectWidget.template-address').length) { |
117 | 117 |
$('div[data-geolocation] input, div[data-geolocation] textarea').attr('readonly', 'readonly') |
118 | 118 |
if ($('.JsonpSingleSelectWidget.template-address.hide-address-parts').length) { |
119 |
$('div[data-geolocation]:not(.template-address)').attr('hidden', 'hidden') |
|
119 |
$('div[data-geolocation]:not(.template-address):not(.MapWidget)').attr('hidden', 'hidden')
|
|
120 | 120 |
} |
121 | 121 |
} |
122 | 122 | |
123 | 123 |
$('#wcs-manual-address').on('change', function() { |
124 | 124 |
$('div[data-geolocation] input, div[data-geolocation] textarea').attr('readonly', this.checked ? null : 'readonly'); |
125 | 125 |
if (this.checked) { |
126 |
$('div[data-geolocation]:not(.template-address)').attr('hidden', null) |
|
126 |
$('div[data-geolocation]:not(.template-address):not(.MapWidget)').attr('hidden', null)
|
|
127 | 127 |
} else if ($('.JsonpSingleSelectWidget.template-address.hide-address-parts').length) { |
128 |
$('div[data-geolocation]:not(.template-address)').attr('hidden', 'hidden') |
|
128 |
$('div[data-geolocation]:not(.template-address):not(.MapWidget)').attr('hidden', 'hidden')
|
|
129 | 129 |
} |
130 | 130 |
}); |
131 | 131 | |
132 |
- |