Apply conditional to spatial coverage method too
@@ -1166,7 +1166,7 @@ function get_irods_folder_struct_ajax_submit(res_id, store_path) {
$(".selection-menu").hide();
$("#flag-uploading").remove();
$("#fb-files-container, #fb-files-container").css("cursor", "default");
- if (result.hasOwnProperty('spatial_coverage')){
+ if (mode == "edit" && result.hasOwnProperty('spatial_coverage')){
var spatialCoverage = result.spatial_coverage;
updateResourceSpatialCoverage(spatialCoverage);
}
