mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-30 00:29:58 +09:00
issue 1110 add module category in mid list
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10843 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
fcbf5902db
commit
d8c49ddeae
5 changed files with 71 additions and 7 deletions
|
|
@ -226,15 +226,36 @@ $('form.siteMap')
|
|||
if(ret_obj.module_list[module] != undefined)
|
||||
{
|
||||
var midList = ret_obj.module_list[module].list;
|
||||
var midListByCategory = new Object();
|
||||
for(x in midList)
|
||||
{
|
||||
if(!midList.hasOwnProperty(x)){
|
||||
continue;
|
||||
}
|
||||
var midObject = midList[x];
|
||||
htmlBuffer += '<option value="'+midObject.mid+'"';
|
||||
if(menuUrl == midObject.mid) htmlBuffer += ' selected ';
|
||||
htmlBuffer += '>'+midObject.mid+'('+midObject.browser_title+')</option>';
|
||||
|
||||
layoutList[midObject.mid] = midObject.layout_srl;
|
||||
moduleList[midObject.mid] = midObject.module_srl;
|
||||
if(!midListByCategory[midObject.module_category_srl])
|
||||
{
|
||||
midListByCategory[midObject.module_category_srl] = new Array();
|
||||
}
|
||||
midListByCategory[midObject.module_category_srl].push(midObject);
|
||||
}
|
||||
|
||||
for(x in midListByCategory)
|
||||
{
|
||||
var midGroup = midListByCategory[x];
|
||||
htmlBuffer += '<optgroup label="'+x+'">'
|
||||
for(y in midGroup)
|
||||
{
|
||||
var midObject = midGroup[y];
|
||||
htmlBuffer += '<option value="'+midObject.mid+'"';
|
||||
if(menuUrl == midObject.mid) htmlBuffer += ' selected ';
|
||||
htmlBuffer += '>'+midObject.mid+'('+midObject.browser_title+')</option>';
|
||||
|
||||
layoutList[midObject.mid] = midObject.layout_srl;
|
||||
moduleList[midObject.mid] = midObject.module_srl;
|
||||
}
|
||||
htmlBuffer += '</optgroup>'
|
||||
}
|
||||
}
|
||||
else htmlBuffer = '';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue