Changes

Jump to navigation Jump to search
m
no edit summary
Line 261: Line 261:     
     for (var i=0;i<MyClasses.length;i++) {
 
     for (var i=0;i<MyClasses.length;i++) {
 +
        str=MyClasses[i].innerHTML;
 +
        MyClasses[i].innerHTML=str.replace(/(<p>|<\u2Fp>)/gmi,"");
 +
 
         //should contain two spans: pcsx2_collapsible_text_part and pcsx2_collapsible_text_full
 
         //should contain two spans: pcsx2_collapsible_text_part and pcsx2_collapsible_text_full
 
         var TextPart=MyClasses[i].getElementsByClassName("pcsx2_collapsible_text_part")[0];
 
         var TextPart=MyClasses[i].getElementsByClassName("pcsx2_collapsible_text_part")[0];
Line 281: Line 284:  
         Button.appendChild(ButtonLink);
 
         Button.appendChild(ButtonLink);
 
         Button.appendChild(document.createTextNode(")"));
 
         Button.appendChild(document.createTextNode(")"));
//        str=TextPart.innerHTML;
  −
//        TextPart.innerHTML=str.replace(/(<p>|<\u2Fp>)/gmi,"");
   
         TextFull.setAttribute("id","pcsx2_collapsibleTextFull"+textIndex);
 
         TextFull.setAttribute("id","pcsx2_collapsibleTextFull"+textIndex);
 
         TextFull.style.display="none";
 
         TextFull.style.display="none";
67,022

edits

Navigation menu