Mark default category in bold #2335

This commit is contained in:
Kijin Sung 2024-05-04 20:52:51 +09:00
parent d9be564dae
commit 0a459eb528

View file

@ -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){