From ffc5ef3a527a476474daf091133db4a430be4212 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Tue, 2 Feb 2016 14:07:06 +0100 Subject: [PATCH] (proxy) change url on tabchange and add quick nav --- src/opnsense/mvc/app/views/OPNsense/Proxy/index.volt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/opnsense/mvc/app/views/OPNsense/Proxy/index.volt b/src/opnsense/mvc/app/views/OPNsense/Proxy/index.volt index 95bd656a2..3dc421420 100644 --- a/src/opnsense/mvc/app/views/OPNsense/Proxy/index.volt +++ b/src/opnsense/mvc/app/views/OPNsense/Proxy/index.volt @@ -147,6 +147,13 @@ POSSIBILITY OF SUCH DAMAGE. }); }); + // update history on tab state and implement navigation + if(window.location.hash != "") { + $('a[href="' + window.location.hash + '"]').click() + } + $('.nav-tabs a').on('shown.bs.tab', function (e) { + history.pushState(null, null, e.target.hash); + }); });