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:
@@ -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');
|
||||
|
Reference in New Issue
Block a user