mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Fix JS error when getModuleAdminModuleList() returns null for nonexistent modules
This commit is contained in:
parent
88ac7ef65d
commit
26fd165337
1 changed files with 4 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ xe.ModuleListManager = xe.createApp("ModuleListManager", {
|
|||
|
||||
this.$selectedObj.nextAll('a').filter('.moduleTrigger').bind('moduleSelect', function(e, aSelected){
|
||||
var sType, sName, sSrl;
|
||||
|
||||
|
||||
for(var i=0, nLen=aSelected.length; i<nLen; i++){
|
||||
sType = aSelected[i].mid + ', ' + aSelected[i].type;
|
||||
sName = aSelected[i].browser_title;
|
||||
|
|
@ -83,6 +83,9 @@ xe.ModuleListManager = xe.createApp("ModuleListManager", {
|
|||
|
||||
for(var i in data.module_list){
|
||||
var module = data.module_list[i];
|
||||
if (!module) {
|
||||
continue;
|
||||
}
|
||||
var obj = $(document.createElement('option'));
|
||||
obj.val(module.module_srl).html(module.browser_title + ' (' + module.mid + ', ' + module.module_name + ')').appendTo(self.$selectedObj);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue