diff --git a/services/web/app/views/_scripts/active_tab.pug b/services/web/app/views/_scripts/active_tab.pug new file mode 100644 index 0000000000..290505d6cb --- /dev/null +++ b/services/web/app/views/_scripts/active_tab.pug @@ -0,0 +1,10 @@ +script(type="text/javascript"). + if (window.location.hash) { + setTimeout(function(){ + tabID = window.location.hash.replace('#', '') + tab = document.getElementById(tabID) + if (tab && typeof(tab) != 'undefined' && tab != null) { + tab.setAttribute('active', true) + } + }, 500); + } \ No newline at end of file