1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 14:42:10 +00:00

encode path for using in URI

This commit is contained in:
Daniel Pan
2015-04-08 18:26:23 +08:00
parent dd5128cb57
commit 9d6dfdabeb
4 changed files with 17 additions and 6 deletions

View File

@@ -29,9 +29,11 @@ define([
render: function() {
var dir = this.dir;
var dirent_path = Common.pathJoin([dir.path, this.model.get('obj_name')]);
this.$el.html(this.template({
dirent: this.model.attributes,
dirent_path: Common.pathJoin([dir.path, this.model.get('obj_name')]),
dirent_path: dirent_path,
encoded_path: Common.encodePath(dirent_path),
category: dir.category,
repo_id: dir.repo_id,
user_perm: dir.user_perm,