themes/oxygen/header.tpl
changeset 81 d7fc25acd3f3
parent 80 cb7dde69c301
child 241 39c132e69781
equal deleted inserted replaced
80:cb7dde69c301 81:d7fc25acd3f3
     1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
     1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
     2 <html>
     2 <html xmlns="http://www.w3.org/1999/xhtml">
     3   <head>
     3   <head>
     4     <title>{PAGE_NAME} &bull; {SITE_NAME}</title>
     4     <title>{PAGE_NAME} &bull; {SITE_NAME}</title>
     5     <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
     5     <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
     6     <link rel="stylesheet" type="text/css" href="{SCRIPTPATH}/includes/clientside/css/enano-shared.css" />
     6     <link rel="stylesheet" type="text/css" href="{SCRIPTPATH}/includes/clientside/css/enano-shared.css" />
     7     <link id="mdgCss" rel="stylesheet" href="{SCRIPTPATH}/themes/{THEME_ID}/css/{STYLE_ID}.css" type="text/css" />
     7     <link id="mdgCss" rel="stylesheet" href="{SCRIPTPATH}/themes/{THEME_ID}/css/{STYLE_ID}.css" type="text/css" />
    71           return false;
    71           return false;
    72         // This trick is _so_ vBulletin...
    72         // This trick is _so_ vBulletin...
    73         elem = document.getElementById('h2PageName');
    73         elem = document.getElementById('h2PageName');
    74         if(!elem) return;
    74         if(!elem) return;
    75         elem.style.display = 'none';
    75         elem.style.display = 'none';
    76         name = elem.innerHTML;
    76         name = elem.firstChild.nodeValue;
    77         textbox = document.createElement('input');
    77         textbox = document.createElement('input');
    78         textbox.type = 'text';
    78         textbox.type = 'text';
    79         textbox.value = name;
    79         textbox.value = name;
    80         textbox.id = 'pageheading';
    80         textbox.id = 'pageheading';
    81         textbox.size = name.length + 7;
    81         textbox.size = name.length + 7;
    88         elem1 = document.getElementById('h2PageName');
    88         elem1 = document.getElementById('h2PageName');
    89         elem2 = document.getElementById('pageheading');
    89         elem2 = document.getElementById('pageheading');
    90         if(!elem1 || !elem2) return;
    90         if(!elem1 || !elem2) return;
    91         value = elem2.value;
    91         value = elem2.value;
    92         elem2.parentNode.removeChild(elem2); // just destroy the thing
    92         elem2.parentNode.removeChild(elem2); // just destroy the thing
    93         elem1.innerHTML = value;
    93         elem1.removeChild(elem1.firstChild);
       
    94         elem1.appendChild(document.createTextNode(value));
    94         elem1.style.display = 'block';
    95         elem1.style.display = 'block';
    95         if(!value || value=='') return;
    96         if(!value || value=='') return;
    96         ajaxPost(stdAjaxPrefix+'&_mode=rename', 'newtitle='+escape(value), function() {
    97         ajaxPost(stdAjaxPrefix+'&_mode=rename', 'newtitle='+escape(value), function() {
    97           if(ajax.readyState == 4) {
    98           if(ajax.readyState == 4) {
    98             alert(ajax.responseText);
    99             alert(ajax.responseText);