summaryrefslogtreecommitdiffstats
path: root/script/custom.js
blob: 3269749eba4903a2edfc6a2fe36a0a2e3cdd548c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function loadContent(elem, source)
{
	$(elem).html('<div class="progress progress-striped active"><div class="progress-bar" style="width:100%"><span class="sr-only">In Progress....</span></div></div>');
	$(elem).load(source);
}

function selectDir(obj)
{
	dirname = $(obj).parent().parent().find('td.isdir').text() + '/';
	console.log("CALLED! Dirname: " + dirname);
	$('td.fileEntry').each(function() {
		var text = $(this).text();
		if (text.length < dirname.length) return;
		if (text.substr(0, dirname.length) !== dirname) return;
		$(this).parent().find('.fileBox')[0].checked = obj.checked;
	});
}