1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 22:54:11 +00:00

Make open-via-client in community edition and clean code for file/dir icons

This commit is contained in:
Daniel Pan
2016-02-29 15:29:29 +08:00
parent 003838b8f1
commit 463b48c788
23 changed files with 119 additions and 33 deletions

View File

@@ -50,6 +50,7 @@ define([
this.$el.html(template({
dirent: this.model.attributes,
dirent_path: this.model.getPath(),
icon_url: this.model.getIconUrl(192),
url: this.model.getWebUrl(),
category: dir.category,
repo_id: dir.repo_id,
@@ -132,6 +133,7 @@ define([
this.$el.on('click', '.mv', _.bind(this.mvcp, this));
this.$el.on('click', '.cp', _.bind(this.mvcp, this));
this.$el.on('click', '.rename', _.bind(this.rename, this));
this.$el.on('click', '.open-via-client', _.bind(this.open_via_client, this));
return false;
},
@@ -196,6 +198,11 @@ define([
};
new DirentRenameDialog(options);
return false;
},
open_via_client: function() {
this._closeMenu();
return true;
}
});