modules/management/assets/static/js/management-categories.js
Function init
has 123 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init: function() {
this.treeElement = $('#category-list');
if (!this.treeElement.length) {
return false;
}
Function display
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
display: function() {
var options = {
dragAndDrop: true,
selectable: true,
autoOpen: true,
Function onCreateLi
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
onCreateLi: function(node, li) {
if (node.isEmpty) {
li.addClass('jqtree-empty');
return;
}