author | Dan |
Wed, 25 Jul 2007 18:06:34 -0400 | |
changeset 74 | 68469a95658d |
parent 71 | 21770a1a5213 |
child 80 | cb7dde69c301 |
permissions | -rw-r--r-- |
0 | 1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
2 |
<html> |
|
3 |
<head> |
|
4 |
<title>{PAGE_NAME} • {SITE_NAME}</title> |
|
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" /> |
|
7 |
<link id="mdgCss" rel="stylesheet" href="{SCRIPTPATH}/themes/{THEME_ID}/css/{STYLE_ID}.css" type="text/css" /> |
|
8 |
{JS_DYNAMIC_VARS} |
|
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> |
|
11 |
{ADDITIONAL_HEADERS} |
|
12 |
||
13 |
<script type="text/javascript"> |
|
71 | 14 |
// <![CDATA[ |
0 | 15 |
|
16 |
function collapseSidebar(side) |
|
17 |
{ |
|
18 |
elem = document.getElementById(side+'-sidebar'); |
|
19 |
if(!elem) return; |
|
20 |
counter = document.getElementById(side+'-sidebar-showbutton'); |
|
21 |
if(elem.style.display=='none') |
|
22 |
{ |
|
23 |
elem.style.display = 'block'; |
|
24 |
counter.style.display = 'none'; |
|
74
68469a95658d
Various bugfixes and cleanups, too much to remember... see the diffs for what got changed :-)
Dan
parents:
71
diff
changeset
|
25 |
elem.parentNode.style.width = ''; |
57
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
26 |
if ( !KILL_SWITCH ) |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
27 |
{ |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
28 |
createCookie(side+'_sidebar', 'open', 365); |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
29 |
} |
0 | 30 |
} else { |
31 |
elem.style.display = 'none'; |
|
32 |
counter.style.display = 'block'; |
|
33 |
elem.parentNode.style.width = '25px'; |
|
57
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
34 |
if ( !KILL_SWITCH ) |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
35 |
{ |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
36 |
createCookie(side+'_sidebar', 'collapsed', 365); |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
37 |
} |
0 | 38 |
} |
39 |
} |
|
40 |
||
41 |
/* |
|
42 |
window.onload = function() { |
|
43 |
if(typeof readCookie == 'function') |
|
44 |
{ |
|
45 |
if(readCookie('left_sidebar') =='collapsed') collapseSidebar('left'); |
|
46 |
if(readCookie('right_sidebar')=='collapsed') collapseSidebar('right'); |
|
47 |
} |
|
48 |
if(typeof mdgInnerLoader == 'function') |
|
49 |
mdgInnerLoader(); |
|
50 |
} |
|
51 |
*/ |
|
52 |
||
57
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
53 |
if ( typeof(KILL_SWITCH) != 'undefined' ) |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
54 |
{ |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
55 |
if ( !KILL_SWITCH ) |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
56 |
{ |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
57 |
var oxygenSidebarSetup = function() { |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
58 |
if(typeof readCookie == 'function') |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
59 |
{ |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
60 |
if(readCookie('left_sidebar') =='collapsed') collapseSidebar('left'); |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
61 |
if(readCookie('right_sidebar')=='collapsed') collapseSidebar('right'); |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
62 |
} |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
63 |
}; |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
64 |
addOnloadHook(oxygenSidebarSetup); |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
65 |
} |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
66 |
} |
22
d0314575e2f0
More preliminary l10n work; userpage portal style basics implemented
Dan
parents:
0
diff
changeset
|
67 |
|
0 | 68 |
function ajaxRenameInline() |
69 |
{ |
|
57
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
70 |
if ( KILL_SWITCH ) |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
71 |
return false; |
0 | 72 |
// This trick is _so_ vBulletin... |
73 |
elem = document.getElementById('h2PageName'); |
|
74 |
if(!elem) return; |
|
75 |
elem.style.display = 'none'; |
|
76 |
name = elem.innerHTML; |
|
77 |
textbox = document.createElement('input'); |
|
78 |
textbox.type = 'text'; |
|
79 |
textbox.value = name; |
|
80 |
textbox.id = 'pageheading'; |
|
81 |
textbox.size = name.length + 7; |
|
82 |
textbox.onkeyup = function(e) { if(!e) return; if(e.keyCode == 13) ajaxRenameInlineSave(); if(e.keyCode == 27) ajaxRenameInlineCancel(); }; |
|
83 |
elem.parentNode.insertBefore(textbox, elem); |
|
84 |
document.onclick = ajaxRenameInlineCancel; |
|
85 |
} |
|
86 |
function ajaxRenameInlineSave() |
|
87 |
{ |
|
88 |
elem1 = document.getElementById('h2PageName'); |
|
89 |
elem2 = document.getElementById('pageheading'); |
|
90 |
if(!elem1 || !elem2) return; |
|
91 |
value = elem2.value; |
|
92 |
elem2.parentNode.removeChild(elem2); // just destroy the thing |
|
93 |
elem1.innerHTML = value; |
|
94 |
elem1.style.display = 'block'; |
|
95 |
if(!value || value=='') return; |
|
96 |
ajaxPost(stdAjaxPrefix+'&_mode=rename', 'newtitle='+escape(value), function() { |
|
97 |
if(ajax.readyState == 4) { |
|
98 |
alert(ajax.responseText); |
|
99 |
} |
|
100 |
}); |
|
101 |
} |
|
102 |
function ajaxRenameInlineCancel(e) |
|
103 |
{ |
|
104 |
elem1 = document.getElementById('h2PageName'); |
|
105 |
elem2 = document.getElementById('pageheading'); |
|
106 |
if(!elem1 || !elem2) return; |
|
107 |
if ( e.target ) |
|
108 |
{ |
|
109 |
if(e.target == elem2) |
|
110 |
return; |
|
111 |
} |
|
112 |
//value = elem2.value; |
|
113 |
elem2.parentNode.removeChild(elem2); // just destroy the thing |
|
114 |
//elem1.innerHTML = value; |
|
115 |
elem1.style.display = 'block'; |
|
116 |
document.onclick = null; |
|
117 |
} |
|
71 | 118 |
// ]]> |
0 | 119 |
</script> |
120 |
||
121 |
</head> |
|
122 |
<body> |
|
123 |
<table border="0" cellspacing="0" cellpadding="3" id="enano-master" width="100%"> |
|
124 |
<tr> |
|
125 |
<!-- BEGIN sidebar_left --> |
|
126 |
<td class="mdgSidebarHolder" valign="top"> |
|
127 |
<div id="left-sidebar"> |
|
128 |
{SIDEBAR_LEFT} |
|
129 |
</div> |
|
130 |
<div id="left-sidebar-showbutton" style="display: none; position: fixed; top: 3px; left: 3px;"> |
|
131 |
<input type="button" onclick="collapseSidebar('left');" value=">>" /> |
|
132 |
</div> |
|
133 |
</td> |
|
134 |
<!-- END sidebar_left --> |
|
135 |
<td valign="top"> |
|
136 |
<table border="0" width="100%" cellspacing="0" cellpadding="0"> |
|
137 |
||
138 |
<tr><td id="mdg-tl"></td><td id="mdg-top"></td><td id="mdg-tr"></td></tr> |
|
139 |
||
140 |
<tr><td id="mdg-l"></td><td> |
|
141 |
<table border="0" width="100%" id="title" cellspacing="0" cellpadding="0"> |
|
142 |
<tr> |
|
143 |
<td id="mainhead"><h2><a href="{SCRIPTPATH}/{ADMIN_SID_QUES}">{SITE_NAME}</a></h2><h4>{SITE_DESC}</h4></td> |
|
144 |
</tr> |
|
145 |
</table> |
|
146 |
</td><td id="mdg-r"></td></tr> |
|
147 |
||
148 |
<tr><td id="mdg-brl"></td><td style="background-color: #FFFFFF;"></td><td id="mdg-brr"></td></tr> |
|
149 |
||
32
4d87aad3c4c0
Finished everything on the TODO list (yay!); several CSS cleanups; tons more changes in this commit - see the patch for details
Dan
parents:
22
diff
changeset
|
150 |
<tr> |
4d87aad3c4c0
Finished everything on the TODO list (yay!); several CSS cleanups; tons more changes in this commit - see the patch for details
Dan
parents:
22
diff
changeset
|
151 |
<td id="mdg-bl"></td> |
4d87aad3c4c0
Finished everything on the TODO list (yay!); several CSS cleanups; tons more changes in this commit - see the patch for details
Dan
parents:
22
diff
changeset
|
152 |
<td class="menu_bg"> |
0 | 153 |
<div class="menu_nojs" id="pagebar_main"> |
154 |
<div class="label">Page tools</div> |
|
155 |
{TOOLBAR} |
|
156 |
<ul> |
|
157 |
{TOOLBAR_EXTRAS} |
|
158 |
</ul> |
|
32
4d87aad3c4c0
Finished everything on the TODO list (yay!); several CSS cleanups; tons more changes in this commit - see the patch for details
Dan
parents:
22
diff
changeset
|
159 |
<span class="menuclear"></span> |
0 | 160 |
</div> |
161 |
</td><td id="mdg-br"></td></tr> |
|
162 |
<tr><td id="mdg-ml"></td><td style="background-color: #FFFFFF;"> |
|
163 |
<div class="pad"><div class="contentDiv"> |
|
164 |
<div style="float: right;"> |
|
71 | 165 |
<img alt=" " src="{SCRIPTPATH}/images/spacer.gif" id="ajaxloadicon" /> |
0 | 166 |
</div> |
167 |
<h2 <!-- BEGIN auth_rename --> ondblclick="ajaxRenameInline();" title="Double-click to rename this page" <!-- END auth_rename --> id="h2PageName">{PAGE_NAME}</h2> |
|
168 |
<div id="ajaxEditContainer"> |