diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-08-05 13:05:23 +0300 |
---|---|---|
committer | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-08-05 13:05:23 +0300 |
commit | e7e2963f96a13feb7e1e0a4bf562cc78bba0cc0e (patch) | |
tree | 96811d7f62a2fa71d98b17208a3771a6d5892d87 /interface | |
parent | 7d053462fcbb5317f528918b9b0e63abf8d5ce5c (diff) | |
download | rspamd-e7e2963f96a13feb7e1e0a4bf562cc78bba0cc0e.tar.gz rspamd-e7e2963f96a13feb7e1e0a4bf562cc78bba0cc0e.zip |
[Minor] Do not consider request as failed
if returned object is empty
Diffstat (limited to 'interface')
-rw-r--r-- | interface/js/app/rspamd.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js index b83bb5cff..70f6fbfd5 100644 --- a/interface/js/app/rspamd.js +++ b/interface/js/app/rspamd.js @@ -199,10 +199,8 @@ function ($, d3pie, visibility, tab_stat, tab_graph, tab_config, url: neighbours_status[ind].url + req_url, success: function (json) { neighbours_status[ind].checked = true; - if (!jQuery.isEmptyObject(json) || req_url === "neighbours") { - neighbours_status[ind].status = true; - neighbours_status[ind].data = json; - } + neighbours_status[ind].status = true; + neighbours_status[ind].data = json; }, error: function (jqXHR, textStatus, errorThrown) { neighbours_status[ind].checked = true; |