Archived
1
0

try to make sure e is not null

This commit is contained in:
Jeff 2016-05-04 13:12:46 -04:00
parent 8f1a497f13
commit 96f6044489
2 changed files with 2 additions and 1 deletions

View File

@ -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");
}

View File

@ -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);}