Commit 5f6f3d0c authored by Jérôme Chauveau's avatar Jérôme Chauveau
Browse files

fix tooltip console error

parent 4bbe7dbb
Loading
Loading
Loading
Loading
+4 −1
Changes for ui/js/Max.js: 4 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -31,7 +31,6 @@ class Max {
      if($("#bas_de_page .footnote").length > 0)
        $("#bas_de_page").show();
    }

    if($("#scrollfocus").length == 1){
       this.scrollToID("scrollfocus")
    }
@@ -60,6 +59,7 @@ class Max {
  
  scrollToID(id) {
      this.scrollToElement($("#" + id.replace(".","\\.")));
      //document.getElementById(id).scrollIntoView(false);
  }
  
  scrollToElement(element, delay) {
@@ -166,6 +166,7 @@ class Max {

  
  bindTooltips (){
      try{
             $('[data-toggle="tooltip"]').each(function(){
                var noteNumber = $(this).attr('id').substr(5);
                //clones bottom page note
@@ -185,6 +186,8 @@ class Max {
                );
              });
          }
          catch(e){ console.log('tooltips error ' + e)}
   }
   
   runPlugins(){
     for(let i = 0; i < this.plugins.length; i++)