using is_update_file in json response for showing netcdf file update option
@@ -126,7 +126,7 @@ function showWaitDialog(){
function handleIsDirty(json_response) {
// show update netcdf file update option for NetCDFLogicalFile
- if (json_response.logical_file_type === "NetCDFLogicalFile") {
+ if (json_response.logical_file_type === "NetCDFLogicalFile" && json_response.is_update_file) {
$("#div-netcdf-file-update").show();
}
// show update sqlite file update option for TimeSeriesLogicalFile
@@ -134,18 +134,6 @@ function handleIsDirty(json_response) {
json_response.is_update_file && json_response.can_update_sqlite) {
$("#div-sqlite-file-update").show();
}
- // show update netcdf resource
- if (RES_TYPE === 'Multidimensional (NetCDF)' &&
- json_response.is_dirty) {
- $("#netcdf-file-update").show();
- }
-
- // start timeseries resource specific DOM manipulation
- if (RES_TYPE === 'Time Series') {
- if ($("#can-update-sqlite-file").val() === "True" && ($("#metadata-dirty").val() === "True" || json_response.is_dirty)) {
- $("#sql-file-update").show();
- }
- }
}
function metadata_update_ajax_submit(form_id){
