summaryrefslogtreecommitdiffstats
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-rw-r--r--script/custom.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/script/custom.js b/script/custom.js
index f2906813..3269749e 100644
--- a/script/custom.js
+++ b/script/custom.js
@@ -4,3 +4,14 @@ function loadContent(elem, source)
$(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;
+ });
+} \ No newline at end of file