wb-archiv283/trunk/wb/admin/pages/eggsurplus.js @ 1307
1 | 1180 | Luisehahne | 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 | }
|