Revision 1457
Added by Dietmar almost 13 years ago
eggsurplus.js | ||
---|---|---|
1 |
function add_child_page(page_id)
|
|
2 |
{
|
|
3 |
//find and select the page in the parent dropdown
|
|
4 |
var selectBox = document.add.parent;
|
|
5 |
for (var i = 0; i < selectBox.options.length; i++)
|
|
6 |
{
|
|
7 |
if (selectBox.options[i].value == page_id)
|
|
8 |
{
|
|
9 |
selectBox.selectedIndex = i;
|
|
10 |
break;
|
|
11 |
}
|
|
12 |
}
|
|
13 |
//set focus to add form
|
|
14 |
document.add.title.focus();
|
|
15 |
}
|
|
1 |
function add_child_page(page_id) |
|
2 |
{ |
|
3 |
//find and select the page in the parent dropdown |
|
4 |
var selectBox = document.add.parent; |
|
5 |
for (var i = 0; i < selectBox.options.length; i++) |
|
6 |
{ |
|
7 |
if (selectBox.options[i].value == page_id) |
|
8 |
{ |
|
9 |
selectBox.selectedIndex = i; |
|
10 |
break; |
|
11 |
} |
|
12 |
} |
|
13 |
//set focus to add form |
|
14 |
document.add.title.focus(); |
|
15 |
} |
|
16 | 16 |
Also available in: Unified diff
Preparing 2.8.2 stable, last tests