wb-archiv283/branches/2.8.x/wb/admin/pages/eggsurplus.js @ 1619
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 |
}
|