]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Do not consider request as failed
authorAlexander Moisseev <moiseev@mezonplus.ru>
Sun, 5 Aug 2018 10:05:23 +0000 (13:05 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Sun, 5 Aug 2018 10:05:23 +0000 (13:05 +0300)
if returned object is empty

interface/js/app/rspamd.js

index b83bb5cffb08304359d3954aba9b3e4c964e6a09..70f6fbfd5a247e3ab11c0c59a321b0a938a9c199 100644 (file)
@@ -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;