mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-12 05:22:35 +09:00
Mark default category in bold #2335
This commit is contained in:
parent
d9be564dae
commit
0a459eb528
1 changed files with 118 additions and 118 deletions
|
|
@ -26,19 +26,19 @@ function Tree(category_module_srl) {
|
|||
var node_srl = item.node_srl;
|
||||
var parent_srl = item.parent_srl;
|
||||
var color = item.color;
|
||||
var is_default = item.is_default;
|
||||
var url = item.url;
|
||||
|
||||
// node
|
||||
var node = '';
|
||||
var node = $('<li id="tree_'+node_srl+'"></li>');
|
||||
var title = $('<span></span>').text(text);
|
||||
if (color && color !='transparent') {
|
||||
node = $('<li id="tree_'+node_srl+'"></li>');
|
||||
var $span = $('<span></span>').css('color', color).text(text);
|
||||
node.append($span);
|
||||
}else{
|
||||
node = $('<li id="tree_'+node_srl+'"></li>');
|
||||
var $span = $('<span></span>').text(text);
|
||||
node.append($span);
|
||||
title.css('color', color);
|
||||
}
|
||||
if (is_default == 'Y') {
|
||||
title.css('font-weight', 'bold');
|
||||
}
|
||||
node.append(title);
|
||||
|
||||
// button
|
||||
$('<a href="#__category_info" class="add modalAnchor"><img src="' + default_url + 'common/js/plugins/ui.tree/images/iconAdd.gif" /></a>').bind("click",function(e){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue