summaryrefslogtreecommitdiffstats
path: root/interface
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-03-26 10:33:37 +0100
committerGitHub <noreply@github.com>2018-03-26 10:33:37 +0100
commit2fd75a5ace791e90a1afc175a5295939cf676fb3 (patch)
treeceb285a9efb15a0ef5f2a020fc148c12231f74e6 /interface
parent85e773a6fe2744256905e4b2cd8338bf1d420bcc (diff)
parent2ff0b674ebb57f19801c7c2c95226a79d7bd9602 (diff)
downloadrspamd-2fd75a5ace791e90a1afc175a5295939cf676fb3.tar.gz
rspamd-2fd75a5ace791e90a1afc175a5295939cf676fb3.zip
Merge pull request #2115 from bjoe2k4/patch-2
[WebUI] History: Fix Tooltips on paging, filtering and sorting
Diffstat (limited to 'interface')
-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
}
});
}