mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Update webui (#301)
* update * update * fix * implement opt groups * spaces [skip ci] * page wrapper adjust [skip ci] * implement optgroups for remote, adjust effect schemas * lost id [skip ci]
This commit is contained in:
@@ -69,12 +69,21 @@
|
||||
var newEffects = event.response.info.effects;
|
||||
if (newEffects.length != oldEffects.length)
|
||||
{
|
||||
effects_html = '<option value="__none__"></option>';
|
||||
$('#effect_select').html('<option value="__none__"></option>');
|
||||
var usrEffArr = [];
|
||||
var sysEffArr = [];
|
||||
|
||||
for(i = 0; i < newEffects.length; i++) {
|
||||
effectName = newEffects[i].name;
|
||||
effects_html += '<option value="'+effectName+'">'+effectName+'</option>';
|
||||
var effectName = newEffects[i].name;
|
||||
if(!/^\:/.test(newEffects[i].file)){
|
||||
usrEffArr.push(effectName);
|
||||
}
|
||||
else{
|
||||
sysEffArr.push(effectName);
|
||||
}
|
||||
}
|
||||
$('#effect_select').html(effects_html);
|
||||
$('#effect_select').append(createSel(usrEffArr, "User Effects"));
|
||||
$('#effect_select').append(createSel(sysEffArr, "Provided Effects"));
|
||||
oldEffects = newEffects;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user