diff --git a/configuration.php b/configuration.php index 4aca46df1..012523e10 100644 --- a/configuration.php +++ b/configuration.php @@ -1670,7 +1670,7 @@ function updatestatus(e){ window.picturepathupdated=false; } } - }).error(function(){ + }).fail(function(){ $('#messages').text('Something is broken'); }); } diff --git a/devices.php b/devices.php index 2cdc57fba..806adb6b1 100644 --- a/devices.php +++ b/devices.php @@ -1455,7 +1455,7 @@ function getfirstport(devicecalling, devid) { }).then(refreshdevice($('#DeviceType').val(),$('#DeviceID').val(),true)); }); }); - }).error(function(data){ + }).fail(function(data){ $('#messages').text('data.message'); }); diff --git a/repository_sync_ui.php b/repository_sync_ui.php index 6e51d606b..b4a8f7b0e 100644 --- a/repository_sync_ui.php +++ b/repository_sync_ui.php @@ -486,15 +486,15 @@ function AddImage(imageURL){ // Create ports for(var i in row.data("globaldataports")){ - $.ajax({type: postorput,url: 'api/v1/devicetemplate/'+data.devicetemplate.TemplateID+'/dataport/'+(parseInt(i)+1),async: false,data: row.data("globaldataports")[i]}).complete(function(data){}); + $.ajax({type: postorput,url: 'api/v1/devicetemplate/'+data.devicetemplate.TemplateID+'/dataport/'+(parseInt(i)+1),async: false,data: row.data("globaldataports")[i]}).always(function(data){}); } for(var i in row.data("globalpowerports")){ - $.ajax({type: postorput,url: 'api/v1/devicetemplate/'+data.devicetemplate.TemplateID+'/powerport/'+(parseInt(i)+1),async: false,data: row.data("globalpowerports")[i]}).complete(function(data){}); + $.ajax({type: postorput,url: 'api/v1/devicetemplate/'+data.devicetemplate.TemplateID+'/powerport/'+(parseInt(i)+1),async: false,data: row.data("globalpowerports")[i]}).always(function(data){}); } // Create slots for(var i in row.data("globalslots")){ - $.ajax({type: postorput,url: 'api/v1/devicetemplate/'+data.devicetemplate.TemplateID+'/slot/'+(parseInt(i)+1),async: false,data: row.data("globalslots")[i]}).complete(function(data){}); + $.ajax({type: postorput,url: 'api/v1/devicetemplate/'+data.devicetemplate.TemplateID+'/slot/'+(parseInt(i)+1),async: false,data: row.data("globalslots")[i]}).always(function(data){}); } }else{ row.removeClass('change');