themes/stpatty/header.tpl
changeset 81 d7fc25acd3f3
parent 52 10ed1f728bf3
child 151 824821224153
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     {JS_DYNAMIC_VARS}
     6     {JS_DYNAMIC_VARS}
     7     <link rel="stylesheet" type="text/css" href="{SCRIPTPATH}/includes/clientside/css/enano-shared.css" />
     7     <link rel="stylesheet" type="text/css" href="{SCRIPTPATH}/includes/clientside/css/enano-shared.css" />
    17       {
    17       {
    18         // This trick is _so_ vBulletin...
    18         // This trick is _so_ vBulletin...
    19         elem = document.getElementById('pagetitle');
    19         elem = document.getElementById('pagetitle');
    20         if(!elem) return;
    20         if(!elem) return;
    21         elem.style.display = 'none';
    21         elem.style.display = 'none';
    22         name = elem.innerHTML;
    22         name = elem.firstChild.nodeValue;
    23         textbox = document.createElement('input');
    23         textbox = document.createElement('input');
    24         textbox.type = 'text';
    24         textbox.type = 'text';
    25         textbox.value = name;
    25         textbox.value = name;
    26         textbox.id = 'pageheading';
    26         textbox.id = 'pageheading';
    27         textbox.size = name.length + 7;
    27         textbox.size = name.length + 7;
    34         elem1 = document.getElementById('pagetitle');
    34         elem1 = document.getElementById('pagetitle');
    35         elem2 = document.getElementById('pageheading');
    35         elem2 = document.getElementById('pageheading');
    36         if(!elem1 || !elem2) return;
    36         if(!elem1 || !elem2) return;
    37         value = elem2.value;
    37         value = elem2.value;
    38         elem2.parentNode.removeChild(elem2); // just destroy the thing
    38         elem2.parentNode.removeChild(elem2); // just destroy the thing
    39         elem1.innerHTML = value;
    39         elem1.removeChild(elem1.firstChild);
       
    40         elem1.appendChild(document.createTextNode(value));
    40         elem1.style.display = 'block';
    41         elem1.style.display = 'block';
    41         if(!value || value=='') return;
    42         if(!value || value=='') return;
    42         ajaxPost(stdAjaxPrefix+'&_mode=rename', 'newtitle='+escape(value), function() {
    43         ajaxPost(stdAjaxPrefix+'&_mode=rename', 'newtitle='+escape(value), function() {
    43           if(ajax.readyState == 4) {
    44           if(ajax.readyState == 4) {
    44             alert(ajax.responseText);
    45             alert(ajax.responseText);