1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 15:09:14 +00:00

[my libs, dir view] improvement: enlarge clickable area, and etc.

This commit is contained in:
llj
2016-12-28 17:08:10 +08:00
parent cffc0743d2
commit 90a5552a9d
4 changed files with 33 additions and 5 deletions

View File

@@ -24,6 +24,7 @@ define([
transferTemplate: _.template($('#repo-transfer-form-tmpl').html()),
events: {
'click td:lt(2)': 'visitRepo',
'click .repo-delete-btn': 'del',
'click .repo-share-btn': 'share',
'click .js-repo-rename': 'rename',
@@ -64,6 +65,12 @@ define([
return this;
},
visitRepo: function() {
if ($(window).width() < 768) {
location.href = this.$('.repo-name-span a').attr('href');
}
},
del: function() {
var _this = this;
var repo_name = this.model.get('name');