From b12cac5b2dfed930083ab114644d4bc0556afae8 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Wed, 1 Apr 2020 19:21:45 +0200 Subject: [PATCH] Shaper: as discussed with @fichtner collapse shaper options into menu for clarity --- .../app/models/OPNsense/TrafficShaper/Menu/Menu.xml | 10 ++++------ .../mvc/app/views/OPNsense/TrafficShaper/index.volt | 3 +++ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/opnsense/mvc/app/models/OPNsense/TrafficShaper/Menu/Menu.xml b/src/opnsense/mvc/app/models/OPNsense/TrafficShaper/Menu/Menu.xml index 5d0ca5fdd..4f702304e 100644 --- a/src/opnsense/mvc/app/models/OPNsense/TrafficShaper/Menu/Menu.xml +++ b/src/opnsense/mvc/app/models/OPNsense/TrafficShaper/Menu/Menu.xml @@ -1,12 +1,10 @@ - - - - - - + + + + diff --git a/src/opnsense/mvc/app/views/OPNsense/TrafficShaper/index.volt b/src/opnsense/mvc/app/views/OPNsense/TrafficShaper/index.volt index 1d5cc621a..e06ce7950 100644 --- a/src/opnsense/mvc/app/views/OPNsense/TrafficShaper/index.volt +++ b/src/opnsense/mvc/app/views/OPNsense/TrafficShaper/index.volt @@ -126,6 +126,9 @@ POSSIBILITY OF SUCH DAMAGE. $('.nav-tabs a').on('shown.bs.tab', function (e) { history.pushState(null, null, e.target.hash); }); + $(window).on('hashchange', function(e) { + $('a[href="' + window.location.hash + '"]').click() + }); });