diff options
author | moisseev <moiseev@mezonplus.ru> | 2019-05-12 13:00:47 +0300 |
---|---|---|
committer | moisseev <moiseev@mezonplus.ru> | 2019-05-12 13:00:47 +0300 |
commit | 47a86a5406b52e3379aac3f21cb9338313bda973 (patch) | |
tree | c7d2b6b6f137fffb0e6b168550c30932e361d0bb /interface/js/main.js | |
parent | 7482bf1ce76169463c01e32ce60154e27a74ec78 (diff) | |
download | rspamd-47a86a5406b52e3379aac3f21cb9338313bda973.tar.gz rspamd-47a86a5406b52e3379aac3f21cb9338313bda973.zip |
[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).
Diffstat (limited to 'interface/js/main.js')
-rw-r--r-- | interface/js/main.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/interface/js/main.js b/interface/js/main.js index 0c48d95f5..d5ca99a94 100644 --- a/interface/js/main.js +++ b/interface/js/main.js @@ -13,12 +13,14 @@ requirejs.config({ d3pie: "d3pie.min", footable: "footable.min", nprogress: "nprogress.min", + stickytabs: "jquery.stickytabs.min" }, shim: { bootstrap: {exports:"bootstrap", deps:["jquery"]}, d3pie: {exports:"d3pie", deps:["d3.global", "jquery"]}, d3evolution: {exports:"D3Evolution", deps:["d3", "jquery"]}, - footable: {deps:["bootstrap", "jquery"]} + footable: {deps:["bootstrap", "jquery"]}, + stickytabs: {deps:["jquery"]} } }); |