Переглянути джерело

[Minor] Do not consider request as failed

if returned object is empty
tags/1.8.0
Alexander Moisseev 5 роки тому
джерело
коміт
e7e2963f96
1 змінених файлів з 2 додано та 4 видалено
  1. 2
    4
      interface/js/app/rspamd.js

+ 2
- 4
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;

Завантаження…
Відмінити
Зберегти