themes/oxygen/header.tpl
changeset 147 d8156d18ac58
parent 81 d7fc25acd3f3
child 229 97ae8e9d5e29
--- a/themes/oxygen/header.tpl	Mon Sep 24 23:59:42 2007 -0400
+++ b/themes/oxygen/header.tpl	Thu Sep 27 15:55:37 2007 -0400
@@ -1,5 +1,5 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
+<html>
   <head>
     <title>{PAGE_NAME} &bull; {SITE_NAME}</title>
     <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
@@ -11,7 +11,6 @@
     {ADDITIONAL_HEADERS}
     
     <script type="text/javascript">
-    // <![CDATA[
     
       function collapseSidebar(side)
       {
@@ -22,7 +21,7 @@
         {
           elem.style.display = 'block';
           counter.style.display = 'none';
-          elem.parentNode.style.width = '';
+          elem.parentNode.style.width = '156px';
           if ( !KILL_SWITCH )
           {
             createCookie(side+'_sidebar', 'open', 365);
@@ -67,7 +66,7 @@
       
       function ajaxRenameInline()
       {
-        if ( KILL_SWITCH || IE )
+        if ( KILL_SWITCH )
           return false;
         // This trick is _so_ vBulletin...
         elem = document.getElementById('h2PageName');
@@ -90,8 +89,7 @@
         if(!elem1 || !elem2) return;
         value = elem2.value;
         elem2.parentNode.removeChild(elem2); // just destroy the thing
-        elem1.removeChild(elem1.firstChild);
-        elem1.appendChild(document.createTextNode(value));
+        elem1.innerHTML = value;
         elem1.style.display = 'block';
         if(!value || value=='') return;
         ajaxPost(stdAjaxPrefix+'&_mode=rename', 'newtitle='+escape(value), function() {
@@ -102,12 +100,10 @@
       }
       function ajaxRenameInlineCancel(e)
       {
-        if ( typeof(e) != 'object' && IE )
-          e = window.event;
         elem1 = document.getElementById('h2PageName');
         elem2 = document.getElementById('pageheading');
         if(!elem1 || !elem2) return;
-        if ( typeof(e) == 'object' && e.target )
+        if ( e.target )
         {
           if(e.target == elem2)
             return;
@@ -118,7 +114,6 @@
         elem1.style.display = 'block';
         document.onclick = null;
       }
-    // ]]>
     </script>
     
   </head>
@@ -165,7 +160,7 @@
         <tr><td id="mdg-ml"></td><td style="background-color: #FFFFFF;">
           <div class="pad"><div class="contentDiv">
           <div style="float: right;">
-            <img alt=" " src="{SCRIPTPATH}/images/spacer.gif" id="ajaxloadicon" />
+            <image alt=" " src="{SCRIPTPATH}/images/spacer.gif" id="ajaxloadicon" />
           </div>
           <h2 <!-- BEGIN auth_rename --> ondblclick="ajaxRenameInline();" title="Double-click to rename this page" <!-- END auth_rename --> id="h2PageName">{PAGE_NAME}</h2>
             <div id="ajaxEditContainer">