summaryrefslogtreecommitdiff
path: root/static/init.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/init.js')
-rw-r--r--static/init.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/static/init.js b/static/init.js
new file mode 100644
index 0000000..369bb86
--- /dev/null
+++ b/static/init.js
@@ -0,0 +1,8 @@
+$(document).ready(function() {
+ $.get('/json/list', function(data) {
+ var dir_list = $('#directory-list');
+ $.each(data, function(i, item) {
+ dir_list.append($('<li></li>').text(item.name));
+ });
+ });
+});