mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-29 08:09:58 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@290 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
460167f0d8
commit
3eefc07577
2 changed files with 25 additions and 13 deletions
|
|
@ -7,22 +7,33 @@ function doEditMenuInfo(sel_obj) {
|
|||
var text = obj.text;
|
||||
}
|
||||
|
||||
function doEditInsertMenu(menu_id, menu_srl) {
|
||||
if(typeof(menu_srl)=='undefined'||!menu_srl) {
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
var item_obj = xGetElementById('default_value_item_'+menu_id);
|
||||
var listup_obj = xGetElementById('default_value_listup_'+menu_id);
|
||||
|
||||
var text = item_obj.value;
|
||||
|
||||
if(!text || !menu_srl) return;
|
||||
|
||||
var opt = new Option(text, menu_srl, false, true);
|
||||
listup_obj.options[listup_obj.length] = opt;
|
||||
|
||||
setDepth(listup_obj.options[listup_obj.length-1],0);
|
||||
|
||||
item_obj.value = '';
|
||||
item_obj.focus();
|
||||
}
|
||||
|
||||
function doEditMenu(cmd, menu_id, max_depth) {
|
||||
var listup_obj = xGetElementById('default_value_listup_'+menu_id);
|
||||
var item_obj = xGetElementById('default_value_item_'+menu_id);
|
||||
var idx = listup_obj.selectedIndex;
|
||||
var lng = listup_obj.options.length;
|
||||
var text = item_obj.value;
|
||||
var val = 1;
|
||||
switch(cmd) {
|
||||
case 'insert' :
|
||||
if(!text) return;
|
||||
var opt = new Option(text, val, false, true);
|
||||
listup_obj.options[listup_obj.length] = opt;
|
||||
setDepth(listup_obj.options[listup_obj.length-1],0);
|
||||
item_obj.value = '';
|
||||
item_obj.focus();
|
||||
break;
|
||||
case 'up' :
|
||||
if(lng < 2 || idx<1) return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue