From 47a86a5406b52e3379aac3f21cb9338313bda973 Mon Sep 17 00:00:00 2001 From: moisseev Date: Sun, 12 May 2019 13:00:47 +0300 Subject: [PATCH] [WebUI] Add URL fragments (#) support for tab switching - Show the correct tab when the page is loaded if there is a hash in the URL. - Changing the hash in the URL when the tab is changed. - Change the tab when the hash changes in the URL (back / forward buttons). --- interface/index.html | 8 +++---- interface/js/app/rspamd.js | 29 +++++++++++++++++++---- interface/js/lib/jquery.stickytabs.min.js | 9 +++++++ interface/js/main.js | 4 +++- 4 files changed, 41 insertions(+), 9 deletions(-) create mode 100644 interface/js/lib/jquery.stickytabs.min.js diff --git a/interface/index.html b/interface/index.html index 88a3c41f8c..bb3206aa93 100644 --- a/interface/index.html +++ b/interface/index.html @@ -24,8 +24,8 @@ -