From d16121684ecae7646aa87616a64d60978d087bc0 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 3 Oct 2015 20:39:14 +1300 Subject: Move remaining classes to view --- web/app/ErrorManager.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'web/app/ErrorManager.js') 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 { -- cgit v1.2.3