aboutsummaryrefslogtreecommitdiff
path: root/web/app/ErrorManager.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-03 20:39:14 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-03 20:39:14 +1300
commitd16121684ecae7646aa87616a64d60978d087bc0 (patch)
tree69a02f798950bc9ee54e33cdf8ae09fed40168e4 /web/app/ErrorManager.js
parent8782eeec561e490b4262ba8983e69623daaf5845 (diff)
downloadtrackermap-server-d16121684ecae7646aa87616a64d60978d087bc0.tar.gz
trackermap-server-d16121684ecae7646aa87616a64d60978d087bc0.tar.bz2
trackermap-server-d16121684ecae7646aa87616a64d60978d087bc0.zip
Move remaining classes to view
Diffstat (limited to 'web/app/ErrorManager.js')
-rw-r--r--web/app/ErrorManager.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/web/app/ErrorManager.js b/web/app/ErrorManager.js
index e8b29a319..e809fa382 100644
--- a/web/app/ErrorManager.js
+++ b/web/app/ErrorManager.js
@@ -16,10 +16,11 @@
Ext.define('Traccar.ErrorManager', {
singleton: true,
-
+
check: function (success, response) {
+ var result;
if (success) {
- var result = Ext.decode(response.responseText);
+ result = Ext.decode(response.responseText);
if (result.success || result.error === undefined) {
return true;
} else {