aboutsummaryrefslogtreecommitdiffstats
path: root/interface/js/app/rspamd.js
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2018-07-15 13:14:06 +0300
committerAlexander Moisseev <moiseev@mezonplus.ru>2018-07-15 13:14:06 +0300
commit89bfbd940c9f5d96de3dd661fc43f3fbd75ccc27 (patch)
tree8df9d76554483bcc29b0a20566ac7563d73bdeae /interface/js/app/rspamd.js
parentb816237c36989477a5ead4c0de6b94eeaef57902 (diff)
downloadrspamd-89bfbd940c9f5d96de3dd661fc43f3fbd75ccc27.tar.gz
rspamd-89bfbd940c9f5d96de3dd661fc43f3fbd75ccc27.zip
[Minor] Do not reassign function parameters
Diffstat (limited to 'interface/js/app/rspamd.js')
-rw-r--r--interface/js/app/rspamd.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js
index 708de27ae..b5d44b9f9 100644
--- a/interface/js/app/rspamd.js
+++ b/interface/js/app/rspamd.js
@@ -79,7 +79,8 @@ function ($, d3pie, visibility, tab_stat, tab_graph, tab_config,
ui.connect();
}
- function tabClick(tab_id) {
+ function tabClick(id) {
+ var tab_id = id;
if ($(tab_id).attr("disabled")) return;
$(tab_id).attr("disabled", true);
@@ -387,9 +388,8 @@ function ($, d3pie, visibility, tab_stat, tab_graph, tab_config,
});
});
$.each(neighbours_status, function (ind) {
- method = typeof method !== "undefined" ? method : "GET";
var req_params = {
- type: method,
+ type: typeof method !== "undefined" ? method : "GET",
jsonp: false,
data: req_data,
beforeSend: function (xhr) {
@@ -457,7 +457,8 @@ function ($, d3pie, visibility, tab_stat, tab_graph, tab_config,
});
};
- ui.drawPie = function (obj, id, data, conf) {
+ ui.drawPie = function (object, id, data, conf) {
+ var obj = object;
if (obj) {
obj.updateProp("data.content",
data.filter(function (elt) {