author | Dan |
Sun, 19 Aug 2007 16:22:04 -0400 | |
changeset 97 | 293148ad7a70 |
parent 81 | d7fc25acd3f3 |
child 150 | 824821224153 |
permissions | -rw-r--r-- |
0 | 1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
81
d7fc25acd3f3
Replaced the menu in the admin theme with something much more visually pleasureable; minor fix in Special:UploadFile; finished patching a couple of XSS problems from Banshee; finished Admin:PageGroups; removed unneeded code in flyin.js; finished tag system (except tag cloud); 1.0.1 release candidate
Dan
parents:
52
diff
changeset
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
0 | 3 |
<head> |
4 |
<title>{PAGE_NAME} • {SITE_NAME}</title> |
|
5 |
<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> |
|
6 |
{JS_DYNAMIC_VARS} |
|
7 |
<link rel="stylesheet" type="text/css" href="{SCRIPTPATH}/includes/clientside/css/enano-shared.css" /> |
|
8 |
<link id="mdgCss" rel="stylesheet" type="text/css" href="{SCRIPTPATH}/themes/{THEME_ID}/css/{STYLE_ID}.css" /> |
|
9 |
<!-- This script automatically loads the other 15 JS files --> |
|
10 |
<script type="text/javascript" src="{SCRIPTPATH}/includes/clientside/static/enano-lib-basic.js"></script> |
|
52 | 11 |
<!--[if lt IE 7]> |
0 | 12 |
<link rel="stylesheet" type="text/css" href="{SCRIPTPATH}/themes/{THEME_ID}/css-extra/ie-fixes.css" /> |
13 |
<![endif]--> |
|
14 |
<script type="text/javascript"> |
|
15 |
// <![CDATA[ |
|
16 |
function ajaxRenameInline() |
|
17 |
{ |
|
18 |
// This trick is _so_ vBulletin... |
|
19 |
elem = document.getElementById('pagetitle'); |
|
20 |
if(!elem) return; |
|
21 |
elem.style.display = 'none'; |
|
81
d7fc25acd3f3
Replaced the menu in the admin theme with something much more visually pleasureable; minor fix in Special:UploadFile; finished patching a couple of XSS problems from Banshee; finished Admin:PageGroups; removed unneeded code in flyin.js; finished tag system (except tag cloud); 1.0.1 release candidate
Dan
parents:
52
diff
changeset
|
22 |
name = elem.firstChild.nodeValue; |
0 | 23 |
textbox = document.createElement('input'); |
24 |
textbox.type = 'text'; |
|
25 |
textbox.value = name; |
|
26 |
textbox.id = 'pageheading'; |
|
27 |
textbox.size = name.length + 7; |
|
28 |
textbox.onkeyup = function(e) { if(!e) return; if(e.keyCode == 13) ajaxRenameInlineSave(); if(e.keyCode == 27) ajaxRenameInlineCancel(); }; |
|
29 |
elem.parentNode.insertBefore(textbox, elem); |
|
30 |
document.onclick = ajaxRenameInlineCancel; |
|
31 |
} |
|
32 |
function ajaxRenameInlineSave() |
|
33 |
{ |
|
34 |
elem1 = document.getElementById('pagetitle'); |
|
35 |
elem2 = document.getElementById('pageheading'); |
|
36 |
if(!elem1 || !elem2) return; |
|
37 |
value = elem2.value; |
|
38 |
elem2.parentNode.removeChild(elem2); // just destroy the thing |
|
81
d7fc25acd3f3
Replaced the menu in the admin theme with something much more visually pleasureable; minor fix in Special:UploadFile; finished patching a couple of XSS problems from Banshee; finished Admin:PageGroups; removed unneeded code in flyin.js; finished tag system (except tag cloud); 1.0.1 release candidate
Dan
parents:
52
diff
changeset
|
39 |
elem1.removeChild(elem1.firstChild); |
d7fc25acd3f3
Replaced the menu in the admin theme with something much more visually pleasureable; minor fix in Special:UploadFile; finished patching a couple of XSS problems from Banshee; finished Admin:PageGroups; removed unneeded code in flyin.js; finished tag system (except tag cloud); 1.0.1 release candidate
Dan
parents:
52
diff
changeset
|
40 |
elem1.appendChild(document.createTextNode(value)); |
0 | 41 |
elem1.style.display = 'block'; |
42 |
if(!value || value=='') return; |
|
43 |
ajaxPost(stdAjaxPrefix+'&_mode=rename', 'newtitle='+escape(value), function() { |
|
44 |
if(ajax.readyState == 4) { |
|
45 |
alert(ajax.responseText); |
|
46 |
} |
|
47 |
}); |
|
48 |
} |
|
49 |
function ajaxRenameInlineCancel(e) |
|
50 |
{ |
|
51 |
if ( !e ) |
|
52 |
e = window.event; |
|
53 |
elem1 = document.getElementById('pagetitle'); |
|
54 |
elem2 = document.getElementById('pageheading'); |
|
55 |
if(!elem1 || !elem2) return; |
|
56 |
if ( e && e.target ) |
|
57 |
{ |
|
58 |
if(e.target == elem2) |
|
59 |
return; |
|
60 |
} |
|
61 |
//value = elem2.value; |
|
62 |
elem2.parentNode.removeChild(elem2); // just destroy the thing |
|
63 |
//elem1.innerHTML = value; |
|
64 |
elem1.style.display = 'block'; |
|
65 |
document.onclick = null; |
|
66 |
} |
|
67 |
// ]]> |
|
68 |
</script> |
|
69 |
{ADDITIONAL_HEADERS} |
|
70 |
</head> |
|
71 |
<body> |
|
72 |
<div id="bg"> |
|
73 |
<div id="rap"> |
|
74 |
<div id="title"> |
|
75 |
<img id="clover" src="{SCRIPTPATH}/themes/{THEME_ID}/images/clover.png" alt=" " /> |
|
76 |
<h1>{SITE_NAME}</h1> |
|
77 |
<h2>{SITE_DESC}</h2> |
|
78 |
</div> |
|
79 |
<div class="menu_nojs" id="pagebar_main"> |
|
80 |
<div class="label">Page tools</div> |
|
81 |
{TOOLBAR} |
|
82 |
<ul> |
|
83 |
{TOOLBAR_EXTRAS} |
|
84 |
</ul> |
|
85 |
<span class="menuclear"> </span> |
|
86 |
</div> |
|
87 |
<div id="sidebar"> |
|
88 |
<!-- BEGIN sidebar_left --> |
|
89 |
{SIDEBAR_LEFT} |
|
90 |
<!-- END sidebar_left --> |
|
91 |
<!-- BEGIN sidebar_right --> |
|
92 |
<!-- BEGINNOT in_admin --> |
|
93 |
{SIDEBAR_RIGHT} |
|
94 |
<!-- END in_admin --> |
|
95 |
<!-- END sidebar_right --> |
|
96 |
</div> |
|
97 |
<div id="maincontent"> |
|
98 |
<div style="float: right;"> |
|
99 |
<img alt=" " src="{SCRIPTPATH}/images/spacer.gif" id="ajaxloadicon" /> |
|
100 |
</div> |
|
101 |
<h2 id="pagetitle" <!-- BEGIN auth_rename --> ondblclick="ajaxRenameInline();" title="Double-click to rename this page" <!-- END auth_rename -->>{PAGE_NAME}</h2> |
|
102 |
<div id="ajaxEditContainer"> |
|
103 |