lib/apps/filebrowser/coffee/filebrowser.coffee in daftos-0.3.0 vs lib/apps/filebrowser/coffee/filebrowser.coffee in daftos-0.4.0

- old
+ new

@@ -11,10 +11,13 @@ @hashchange() hashchange: => location = window.location.hash location = location.slice(1,location.length) - @load_dir(location) + if location.length > 0 + @load_dir(location) + else + @load_dir('/') load_dir: (path) => $('#file-list').html("") $('#dir-path').html("") $.ajax '/api/file_system/metadata' \ No newline at end of file