Revision 398
Added by Matthias almost 18 years ago
trunk/CHANGELOG | ||
---|---|---|
12 | 12 |
|
13 | 13 |
------------------------------------- 2.6.5 ------------------------------------- |
14 | 14 |
23-Dez-2006 Matthias Gallas |
15 |
# Fixed IE allows to set a page as parent of itself (#320) |
|
15 | 16 |
# Fixed problem with Page Title has to be escaped (#287) |
16 | 17 |
# Fixed the possibility to call the index.php of the templates directly in the browser (#291) |
17 | 18 |
21-Dez-2006 Matthias Gallas |
trunk/wb/admin/pages/settings.php | ||
---|---|---|
1 | 1 |
<?php |
2 | 2 |
|
3 |
// $Id$ |
|
4 |
|
|
3 | 5 |
/* |
4 | 6 |
|
5 | 7 |
Website Baker Project <http://www.websitebaker.org/> |
... | ... | |
253 | 255 |
if($results_array['parent'] == $page['page_id']) { |
254 | 256 |
$template->set_var('SELECTED', ' selected'); |
255 | 257 |
} elseif($results_array['page_id'] == $page['page_id']) { |
256 |
$template->set_var('SELECTED', ' disabled'); |
|
258 |
$template->set_var('SELECTED', ' disabled="disabled" style="color: #aaa;"');
|
|
257 | 259 |
$list_next_level=false; |
258 | 260 |
} elseif($can_modify != true) { |
259 |
$template->set_var('SELECTED', ' disabled'); |
|
261 |
$template->set_var('SELECTED', ' disabled="disabled" style="color: #aaa;"');
|
|
260 | 262 |
} else { |
261 | 263 |
$template->set_var('SELECTED', ''); |
262 | 264 |
} |
trunk/wb/admin/pages/index.php | ||
---|---|---|
1 | 1 |
<?php |
2 | 2 |
|
3 |
// $Id$ |
|
4 |
|
|
3 | 5 |
/* |
4 | 6 |
|
5 | 7 |
Website Baker Project <http://www.websitebaker.org/> |
... | ... | |
466 | 468 |
if($can_modify == true) { |
467 | 469 |
$template->set_var('DISABLED', ''); |
468 | 470 |
} else { |
469 |
$template->set_var('DISABLED', ' disabled'); |
|
471 |
$template->set_var('DISABLED', ' disabled="disabled" style="color: #aaa;"');
|
|
470 | 472 |
} |
471 | 473 |
$template->parse('page_list2', 'page_list_block2', true); |
472 | 474 |
} |
trunk/wb/admin/pages/settings.html | ||
---|---|---|
8 | 8 |
document.getElementById('allowed_viewers').style.display = 'none'; |
9 | 9 |
} |
10 | 10 |
} |
11 |
var lastselectedindex = new Array(); |
|
12 |
|
|
13 |
function disabled_hack_for_ie(sel) { |
|
14 |
var sels = document.getElementsByTagName("select"); |
|
15 |
|
|
16 |
var i; |
|
17 |
var sel_num_in_doc = 0; |
|
18 |
|
|
19 |
for (i = 0; i <sels.length; i++) |
|
20 |
{ if (sel == sels[i]) |
|
21 |
{ sel_num_in_doc = i; |
|
22 |
} |
|
23 |
} |
|
24 |
|
|
25 |
// never true for browsers that support option.disabled |
|
26 |
if (sel.options[sel.selectedIndex].disabled) |
|
27 |
{ sel.selectedIndex = lastselectedindex[sel_num_in_doc]; |
|
28 |
} else |
|
29 |
{ lastselectedindex[sel_num_in_doc] = sel.selectedIndex; |
|
30 |
} |
|
31 |
|
|
32 |
return true; |
|
33 |
} |
|
11 | 34 |
</script> |
12 | 35 |
|
13 | 36 |
<table cellpadding="5" cellspacing="0" border="0" align="center" width="100%" height="50" style="margin-bottom: 10px;"> |
... | ... | |
37 | 60 |
<table cellpadding="2" cellspacing="0" border="0" width="100%" align="center"> |
38 | 61 |
<tr> |
39 | 62 |
<td width="100" height="20">{TEXT_PAGE_TITLE}:</td> |
40 |
<td with="240" height="20"> |
|
63 |
<td width="240" height="20">
|
|
41 | 64 |
<input type="text" name="page_title" value="{PAGE_TITLE}" style="width: 232px;" /> |
42 | 65 |
</td> |
43 | 66 |
<td rowspan="10" valign="top" style="padding-left: 20px; padding-top: 8px;"> |
... | ... | |
67 | 90 |
</tr> |
68 | 91 |
<tr height="20"> |
69 | 92 |
<td width="100" height="20">{TEXT_MENU_TITLE}:</td> |
70 |
<td with="240" height="20"> |
|
93 |
<td width="240" height="20">
|
|
71 | 94 |
<input type="text" name="menu_title" value="{MENU_TITLE}" style="width: 232px;" /> |
72 | 95 |
</td> |
73 | 96 |
</tr> |
74 | 97 |
<tr height="20"> |
75 | 98 |
<td width="100">{TEXT_PARENT}:</td> |
76 |
<td with="240"> |
|
77 |
<select name="parent" style="width: 240px;"> |
|
99 |
<td width="240">
|
|
100 |
<select name="parent" style="width: 240px;" onchange="return disabled_hack_for_ie(this);">
|
|
78 | 101 |
<!-- BEGIN page_list_block2 --> |
79 | 102 |
<option value="{ID}"{SELECTED}>{TITLE}</option> |
80 | 103 |
<!-- END page_list_block2 --> |
Also available in: Unified diff
Fixed IE allows to set a page as parent of itself (#320)