public/javascripts/jqueryFileTree.js
Function fileBrowser
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.fileBrowser = function(o, handler) {
if( !o ) var o = {};
if( o.root == undefined ) o.root = '';
if( o.script == undefined ) o.script = 'browse';
if( o.title == undefined ) o.title = 'Select a File';
Function bindTree
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var bindTree = function(t) {
$(t).find('LI A').bind('click', function() {
var count = ($(this).data('clickcount') || 0) + 1;
if(count == 1) {