Use global response error handling

This commit is contained in:
softworkz
2016-04-23 22:23:37 +02:00
parent 90e6a8e467
commit 80bca379ff
5 changed files with 9 additions and 38 deletions
+1 -1
View File
@@ -16,7 +16,7 @@
config.WanDdns = $('#txtDdns', form).val();
config.CertificatePath = $('#txtCertificatePath', form).val();
ApiClient.updateServerConfiguration(config).then(Dashboard.processServerConfigurationUpdateResult);
ApiClient.updateServerConfiguration(config).then(Dashboard.processServerConfigurationUpdateResult, Dashboard.processErrorResponse);
});
// Disable default form submission