0002-fields-update-data-source-fields-on-change-of-displa.patch
wcs/qommon/static/js/qommon.admin.js | ||
---|---|---|
263 | 263 |
$('input[name="data_mode"][value="data-source"]').click() |
264 | 264 |
$('select[name="data_source$type"] option:not([data-type="geojson"])').hide(); |
265 | 265 |
if ($('select[name="data_source$type"] option:selected:visible').length == 0) { |
266 |
$('select[name="data_source$type"] option:visible').first().prop('selected', true); |
|
266 |
$('select[name="data_source$type"] option:visible').first().prop('selected', true).trigger('change');
|
|
267 | 267 |
} |
268 | 268 |
} |
269 | 269 |
if ($(this).val() == 'datetimes') { |
270 | 270 |
$('input[name="data_mode"][value="data-source"]').click() |
271 | 271 |
$('select[name="data_source$type"] option:not([data-maybe-datetimes="true"])').hide(); |
272 | 272 |
if ($('select[name="data_source$type"] option:selected:visible').length == 0) { |
273 |
$('select[name="data_source$type"] option:visible').first().prop('selected', true); |
|
273 |
$('select[name="data_source$type"] option:visible').first().prop('selected', true).trigger('change');
|
|
274 | 274 |
} |
275 | 275 |
} |
276 | 276 |
}); |
277 |
- |