diff options
author | Simon Rettberg | 2014-05-15 18:28:24 +0200 |
---|---|---|
committer | Simon Rettberg | 2014-05-15 18:28:24 +0200 |
commit | 63c0cf521f8097b0dadaf1228176dc38c7d897f6 (patch) | |
tree | 83f5da6dc130ac7db575b0eee41ed6c7a2f994fb /script | |
parent | Fix handle leak in downloading, better error reporting on failed downloads, a... (diff) | |
download | slx-admin-63c0cf521f8097b0dadaf1228176dc38c7d897f6.tar.gz slx-admin-63c0cf521f8097b0dadaf1228176dc38c7d897f6.tar.xz slx-admin-63c0cf521f8097b0dadaf1228176dc38c7d897f6.zip |
Working on config.tgz composition through config modules
Diffstat (limited to 'script')
-rw-r--r-- | script/custom.js | 11 |
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 |