aboutsummaryrefslogtreecommitdiffstats
path: root/interface/js/app
diff options
context:
space:
mode:
authorbjoe2k4 <bjoe2k4@users.noreply.github.com>2018-03-25 18:05:31 +0200
committerGitHub <noreply@github.com>2018-03-25 18:05:31 +0200
commit2ff0b674ebb57f19801c7c2c95226a79d7bd9602 (patch)
tree1a92671dd80c299428a5d5d8a36a6e88eb69d599 /interface/js/app
parentbc8ffb4c0f1a75b45dc8c78ec3a19a66ed0ff8b7 (diff)
downloadrspamd-2ff0b674ebb57f19801c7c2c95226a79d7bd9602.tar.gz
rspamd-2ff0b674ebb57f19801c7c2c95226a79d7bd9602.zip
[WebUI] History: Fix Tooltips on paging, filtering and sorting
Also adds Tooltips to history of specific nodes.
Diffstat (limited to 'interface/js/app')
-rw-r--r--interface/js/app/history.js35
1 files changed, 23 insertions, 12 deletions
diff --git a/interface/js/app/history.js b/interface/js/app/history.js
index 50a714750..ff23906b7 100644
--- a/interface/js/app/history.js
+++ b/interface/js/app/history.js
@@ -482,6 +482,17 @@ function($, _, Humanize) {
}
});
+ var drawTooltips = function() {
+ // Update symbol description tooltips
+ $.each(symbolDescriptions, function (key, description) {
+ $('abbr[data-sym-key=' + key + ']').tooltip({
+ "placement": "bottom",
+ "html": true,
+ "title": description
+ });
+ });
+ }
+
if (checked_server === "All SERVERS") {
rspamd.queryNeighbours("history", function (req_data) {
function differentVersions() {
@@ -533,16 +544,10 @@ function($, _, Humanize) {
"filtering": FooTable.actionFilter
},
"on": {
- "ready.ft.table": function () {
- // Update symbol description tooltips
- $.each(symbolDescriptions, function (key, description) {
- $('abbr[data-sym-key=' + key + ']').tooltip({
- "placement": "bottom",
- "html": true,
- "title": description
- });
- });
- }
+ "ready.ft.table": drawTooltips,
+ "after.ft.sorting": drawTooltips,
+ "after.ft.paging": drawTooltips,
+ "after.ft.filtering": drawTooltips
}
});
} else {
@@ -582,8 +587,14 @@ function($, _, Humanize) {
"sorting": {
"enabled": true
},
- components: {
- filtering: FooTable.actionFilter
+ "components": {
+ "filtering": FooTable.actionFilter
+ },
+ "on": {
+ "ready.ft.table": drawTooltips,
+ "after.ft.sorting": drawTooltips,
+ "after.ft.paging": drawTooltips,
+ "after.ft.filtering": drawTooltips
}
});
}