1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-25 06:33:48 +00:00

[deleted libs] list deleted libraries, and enable user to restore a library

This commit is contained in:
llj
2017-06-23 12:02:03 +08:00
parent 734766391a
commit 735faec773
10 changed files with 332 additions and 14 deletions

View File

@@ -6,9 +6,10 @@ define([
'app/collections/repos',
'app/views/repo',
'app/views/add-repo',
'app/views/repo-details'
'app/views/repo-details',
'app/views/widgets/dropdown'
], function($, _, Backbone, Common, RepoCollection, RepoView, AddRepoView,
RepoDetailsView) {
RepoDetailsView, DropdownView) {
'use strict';
var ReposView = Backbone.View.extend({
@@ -21,7 +22,8 @@ define([
events: {
'click .repo-create': 'createRepo',
'click .by-name': 'sortByName',
'click .by-time': 'sortByTime'
'click .by-time': 'sortByTime',
'click #my-libs-more-op a': 'closeDropdown'
},
initialize: function(options) {
@@ -32,6 +34,11 @@ define([
this.repoDetailsView = new RepoDetailsView();
this.render();
this.more_op_dropdown = new DropdownView({
el: this.$("#my-libs-more-op"),
right: 0
})
},
addOne: function(repo, collection, options) {
@@ -149,6 +156,10 @@ define([
this.repos.comparator = null;
return false;
},
closeDropdown: function() {
this.more_op_dropdown.hide();
}
});