From 293b5cb41062e04c0306b33f112b791a4134de02 Mon Sep 17 00:00:00 2001 From: Cristian Deluxe Date: Wed, 7 Dec 2016 05:59:38 +0100 Subject: [PATCH] Fix some errors --- templates/munstrap/static/js/munstrap.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/munstrap/static/js/munstrap.js b/templates/munstrap/static/js/munstrap.js index ae56b863..84739474 100644 --- a/templates/munstrap/static/js/munstrap.js +++ b/templates/munstrap/static/js/munstrap.js @@ -2,7 +2,7 @@ * Sanitize all tab links */ $( "ul#tabs>li>a" ).each(function( index ) { - var eid = element_clear($( this ).attr('href')).replace(/[^#\w]/gi,'_'); + var eid = $( this ).attr('href').replace(/[^#\w]/gi,'_'); $( this ).attr('href', eid); }); @@ -10,7 +10,7 @@ $( "ul#tabs>li>a" ).each(function( index ) { * Sanitize all tab ids */ $( "div#munin_nodeview_tab>div" ).each(function( index ) { - var eid = element_clear($( this ).attr('id')).replace(/[^\w]/gi,'_'); + var eid = $( this ).attr('id').replace(/[^\w]/gi,'_'); $( this ).attr('id', eid); }); @@ -27,5 +27,5 @@ $(document).ready(function() { }); $(window).on('popstate', function() { var anchor = location.hash || $("a[data-toggle=tab]").first().attr("href"); - $('a[href="' + location.hash + '"]').tab('show'); + $('a[href="' + anchor + '"]').tab('show'); }); \ No newline at end of file