try to make sure e is not null
This commit is contained in:
parent
8f1a497f13
commit
96f6044489
@ -9,6 +9,7 @@ function getReplyTo() {
|
||||
// build a new postform
|
||||
document.dynreply = new DynReply();
|
||||
}
|
||||
e = document.dynreply.elem;
|
||||
e.style.position = "fixed";
|
||||
e.setAttribute("class", "shadow");
|
||||
}
|
||||
|
@ -653,7 +653,7 @@ function get_storage(){var st=null;if(window.localStorage){st=window.localStorag
|
||||
return st;}
|
||||
/* local file: ./contrib/js/reply.js */
|
||||
function getReplyTo(){if(!document.dynreply){var e=document.getElementById("postform_container");if(e){document.dynreply=new DynReply(e);}else{document.dynreply=new DynReply();}
|
||||
e.style.position="fixed";e.setAttribute("class","shadow");}
|
||||
e=document.dynreply.elem;e.style.position="fixed";e.setAttribute("class","shadow");}
|
||||
return document.dynreply;}
|
||||
function table_insert_row(table,header,items){var tr=document.createElement("tr");var th=document.createElement("th");th.appendChild(header);tr.appendChild(th);for(var idx=0;idx<items.length;idx++){var elem=document.createElement("td");elem.appendChild(items[idx]);tr.appendChild(elem);}
|
||||
table.appendChild(tr);}
|
||||
|
Reference in New Issue
Block a user