Edain 4.7.2 veröffentlicht! / Edain 4.7.2 released!
News: ")); // Show a warning if the topic has been locked. document.getElementById("lock_warning").style.display = errors.getAttribute("topic_locked") == 1 ? "" : "none"; // Adjust the color of captions if the given data is erroneous. var captions = errors.getElementsByTagN ame("caption"), numCaptions = errors.getElementsByTagN ame("caption").length; for (i = 0; i < numCaptions; i++) if (document.getElementById("caption_" + captions.getAttribute("name"))) document.getElementById("caption_" + captions.getAttribute("name")).style.color = captions.getAttribute("color"); if (errors.getElementsByTagN ame("post_error").length == 1) document.forms.postmodif y.message.style.border = "1px solid red"; else if (document.forms.postmodif y.message.style.borderCo lor == "red" || document.forms.postmodif y.message.style.borderCo lor == "red red red red") { if (typeof(document.forms.postmodif y.message.runtimeStyle) == "undefined") document.forms.postmodif y.message.style.border = null; else document.forms.postmodif y.message.style.borderCo lor = ""; } // Set the new number of replies. if (document.forms.postmodif y.elements["num_replies"]) document.forms.postmodif y.num_replies.value = XMLDoc.getElementsByTagN ame("smf")[0].getElementsByTagName("num_replies")[0].firstChild.nodeValue; var newPosts = XMLDoc.getElementsByTagN ame("smf")[0].getElementsByTagName("new_posts")[0] ? XMLDoc.getElementsByTagN ame("smf")[0].getElementsByTagName("new_posts")[0].getElementsByTagName("post") : {length: 0}; var numNewPosts = newPosts.length; if (numNewPosts != 0) { var newTable = ''; for (i = 0; i < numNewPosts; i++) newTable += 'Datum/Zeit: ' + newPosts.getElementsByTagName("time")[0].firstChild.nodeValue + ' Autor: ' + newPosts.getElementsByTagName("poster")[0].firstChild.nodeValue + ' Zitat einfügen' + newPosts.getElementsByTagName("message")[0].firstChild.nodeValue + ' '; newTable += ''; setOuterHTML(document.getElementById("new_replies"), newTable); } if (typeof(smf_codeFix) != "undefined") smf_codeFix(); } function saveEntities() { var textFields = ["subject", "message", "guestname", "evtitle", "question"]; for (i in textFields) if (document.forms.postmodif y.elements[textFields]) document.forms.postmodif y[textFields].value = document.forms.postmodif y[textFields].value.replace(/&#/g, "&#"); for (var i = document.forms.postmodif y.elements.length - 1; i >= 0; i--) if (document.forms.postmodif y.elements.name.indexOf("options") == 0) document.forms.postmodif y.elements.value = document.forms.postmodif y.elements.value.replace(/&#/g, "&#"); } // ]]>