Error fixes
This commit is contained in:
parent
5f1c426fe9
commit
796d594edd
|
@ -66,6 +66,8 @@ TreeController = {
|
|||
|
||||
// Load leaf counters
|
||||
function _processNodeCounters (container, counters, type) {
|
||||
var hasCounters = false;
|
||||
|
||||
if (typeof counters != 'undefined') {
|
||||
|
||||
function _processNodeCounterTitle (container, elementType, counterType) {
|
||||
|
@ -264,11 +266,15 @@ TreeController = {
|
|||
|
||||
// Close the parentheses
|
||||
$counters.append(")");
|
||||
|
||||
hasCounters = true;
|
||||
}
|
||||
|
||||
// Add the counters html to the container
|
||||
container.append($counters);
|
||||
}
|
||||
|
||||
return hasCounters;
|
||||
// Load the counters asynchronously
|
||||
// else if (typeof element.searchCounters != 'undefined' && element.searchCounters) {
|
||||
// var $counters = $("<div></div>");
|
||||
|
|
Loading…
Reference in New Issue