From 63c0cf521f8097b0dadaf1228176dc38c7d897f6 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 15 May 2014 18:28:24 +0200 Subject: Working on config.tgz composition through config modules --- script/custom.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'script') 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 -- cgit v1.2.3-55-g7522