Revision 398
Added by Matthias almost 19 years ago
| 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)