mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
Fix some errors
This commit is contained in:
parent
42b5c38c21
commit
293b5cb410
@ -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');
|
||||
});
|
Loading…
Reference in New Issue
Block a user