
function initTree(){
$('#lineTree').combotree({
url:glo.path + '/system/configrec/allline',
lines :true,
checkbox:true,
onlyLeafCheck:true,
editable:false,
cascadeCheck:false,
multiple:true,
panelHeight:'auto'
});
}
$(function() {
initTree();
var ids ='';
var t =$('#lineTree').combotree('tree');
$('#lineTree').combotree({
onCheck:function(node,checked){
var nodes = t.tree('getChecked');
if(nodes.length>1){
var node1 = t.tree('find',
ids);
t.tree('uncheck',node1.target);
}
ids = node.id;
}
});
});