diff -r cb7dde69c301 -r d7fc25acd3f3 themes/stpatty/header.tpl
--- a/themes/stpatty/header.tpl Wed Aug 01 13:39:27 2007 -0400
+++ b/themes/stpatty/header.tpl Sun Aug 05 15:58:50 2007 -0400
@@ -1,5 +1,5 @@
-
+
{PAGE_NAME} • {SITE_NAME}
@@ -19,7 +19,7 @@
elem = document.getElementById('pagetitle');
if(!elem) return;
elem.style.display = 'none';
- name = elem.innerHTML;
+ name = elem.firstChild.nodeValue;
textbox = document.createElement('input');
textbox.type = 'text';
textbox.value = name;
@@ -36,7 +36,8 @@
if(!elem1 || !elem2) return;
value = elem2.value;
elem2.parentNode.removeChild(elem2); // just destroy the thing
- elem1.innerHTML = value;
+ elem1.removeChild(elem1.firstChild);
+ elem1.appendChild(document.createTextNode(value));
elem1.style.display = 'block';
if(!value || value=='') return;
ajaxPost(stdAjaxPrefix+'&_mode=rename', 'newtitle='+escape(value), function() {