Browse Source

Bugfix of a bugfix

master 0.3.2
Johann Schmitz 6 years ago
parent
commit
9b17272aaf
  1. 8
      static/js/munin-b3.js

8
static/js/munin-b3.js

@ -3,9 +3,11 @@ $(document).ready(function() {
// bootstraps scrollspy.
$('h3').each(function(idx, elem) {
var oldid = $(elem).attr('id');
var newid = oldid.replace(/%20/g, '-');
$(elem).attr('id', newid);
$("a[href='#" + oldid + "']").attr('href', '#' + newid);
if (oldid) {
var newid = oldid.replace(/%20/g, '-');
$(elem).attr('id', newid);
$("a[href='#" + oldid + "']").attr('href', '#' + newid);
}
});
function reload_images() {