הבדלים בין גרסאות בדף "JComments-IE-Patch"
מתוך אגרון - וויקיפדיה
(דף חדש: file: components/com_jcomments/js/jcomments-v2.1.js <pre> updateList: function(t,m){ if(this.list_id){ var l=this.$(this.list_id); if(!l){ l=this.$('comments'); m='a'; ...) |
|||
שורה 10: | שורה 10: | ||
switch(m){ | switch(m){ | ||
case 'a': | case 'a': | ||
− | |||
//l.innerHTML=l.innerHTML+t; | //l.innerHTML=l.innerHTML+t; | ||
var newdiv = document.createElement("div"); | var newdiv = document.createElement("div"); | ||
newdiv.innerHTML = t; | newdiv.innerHTML = t; | ||
− | var container = document.getElementById( | + | var container = document.getElementById(l.id); |
container.appendChild(newdiv); | container.appendChild(newdiv); | ||
break; | break; | ||
case 'p': | case 'p': | ||
− | |||
//l.innerHTML=t+l.innerHTML; | //l.innerHTML=t+l.innerHTML; | ||
var newdiv = document.createElement("div"); | var newdiv = document.createElement("div"); | ||
newdiv.innerHTML = t; | newdiv.innerHTML = t; | ||
− | var container = document.getElementById( | + | var container = document.getElementById(l.id); |
container.insertBefore(newdiv, container.childNodes[0]); | container.insertBefore(newdiv, container.childNodes[0]); | ||
break; | break; |
גרסה אחרונה מ־12:28, 15 באוקטובר 2010
file: components/com_jcomments/js/jcomments-v2.1.js
updateList: function(t,m){ if(this.list_id){ var l=this.$(this.list_id); if(!l){ l=this.$('comments'); m='a'; } switch(m){ case 'a': //l.innerHTML=l.innerHTML+t; var newdiv = document.createElement("div"); newdiv.innerHTML = t; var container = document.getElementById(l.id); container.appendChild(newdiv); break; case 'p': //l.innerHTML=t+l.innerHTML; var newdiv = document.createElement("div"); newdiv.innerHTML = t; var container = document.getElementById(l.id); container.insertBefore(newdiv, container.childNodes[0]); break; case 'r': l.parentNode.innerHTML=t; break; } } },