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

[hd] modified mine/shared/org ...pages

This commit is contained in:
llj
2015-11-24 12:10:17 +08:00
parent 4c0c8c10aa
commit 385b32154d
7 changed files with 64 additions and 92 deletions

View File

@@ -12,18 +12,16 @@ define([
'use strict';
var OrganizationView = Backbone.View.extend({
el: '#main',
el: '#organization-repos',
reposHdTemplate: _.template($('#shared-repos-hd-tmpl').html()),
initialize: function(options) {
this.$reposDiv = $('#organization-repos');
this.$table = $('#organization-repos table');
this.$table = this.$('table');
this.$tableHead = $('thead', this.$table);
this.$tableBody = $('tbody', this.$table);
this.$loadingTip = $('#organization-repos .loading-tip');
this.$emptyTip = $('#organization-repos .empty-tips');
this.$loadingTip = this.$('.loading-tip');
this.$emptyTip = this.$('.empty-tips');
this.repos = new PubRepoCollection();
this.listenTo(this.repos, 'add', this.addOne);
@@ -55,10 +53,10 @@ define([
},
events: {
'click #organization-repos .share-existing': 'addRepo',
'click #organization-repos .create-new': 'createRepo',
'click #organization-repos .by-name': 'sortByName',
'click #organization-repos .by-time': 'sortByTime'
'click .share-existing': 'addRepo',
'click .create-new': 'createRepo',
'click .by-name': 'sortByName',
'click .by-time': 'sortByTime'
},
createRepo: function() {
@@ -99,7 +97,7 @@ define([
showRepoList: function() {
this.dirView.hide();
this.$reposDiv.show();
this.$el.show();
var $loadingTip = this.$loadingTip;
$loadingTip.show();
var _this = this;
@@ -127,7 +125,7 @@ define([
},
hideRepoList: function() {
this.$reposDiv.hide();
this.$el.hide();
},
showDir: function(repo_id, path) {