rsanchez
2014-10-30 e2aa9b0177cdfeb9e3f26c511f541c37a03134aa
securis/src/main/resources/static/js/admin.js
....@@ -105,7 +105,7 @@
105105 toaster.pop('success', Catalogs.getName(), $L.get("Element deleted successfully"));
106106 },function(error) {
107107 console.log(error);
108
- toaster.pop('error', Catalogs.getName(), $L.get("Error deleting element, reason: {0}. Details: {1}", $L.get(HTTP_ERRORS[error.status]), error.headers('X-SECURIS-ERROR')), 10000);
108
+ toaster.pop('error', Catalogs.getName(), $L.get("Error deleting element, reason: {0}. Details: {1}", $L.get(HTTP_ERRORS[error.status]), error.headers('X-SECURIS-ERROR-MSG')), 10000);
109109 });
110110 }
111111 });
....@@ -180,7 +180,7 @@
180180 toaster.pop('success', Catalogs.getName(), $L.get("Element saved successfully"));
181181 }, function(error) {
182182 console.log(error);
183
- toaster.pop('error', Catalogs.getName(), $L.get("Error saving element, reason: {0}. Details: {1}", $L.get(HTTP_ERRORS[error.status]), error.headers('X-SECURIS-ERROR')), 10000);
183
+ toaster.pop('error', Catalogs.getName(), $L.get("Error saving element, reason: {0}. Details: {1}", $L.get(HTTP_ERRORS[error.status]), error.headers('X-SECURIS-ERROR-MSG')), 10000);
184184 });
185185 }
186186 }