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

[groups] removed 'sideTips', use 'side nav'

This commit is contained in:
llj
2015-12-04 17:26:04 +08:00
parent 25c07a916e
commit 2b9923c700
5 changed files with 9 additions and 39 deletions

View File

@@ -149,12 +149,19 @@ define([
showGroups: function () {
this.switchCurrentView(this.groupsView);
this.groupsView.show();
this.sideNavView.setCurTab('group', {
'cur_group_tab': 'groups',
'cur_group_id': ''
});
},
showGroupRepos: function(group_id) {
this.switchCurrentView(this.groupView);
this.groupView.showRepoList(group_id);
this.sideNavView.setCurTab('group', {'cur_group_id': group_id});
this.sideNavView.setCurTab('group', {
'cur_group_tab': '',
'cur_group_id': group_id
});
},
showGroupRepoDir: function(group_id, repo_id, path) {

View File

@@ -16,7 +16,6 @@ define([
this.listenTo(this.groups, 'add', this.addOne);
this.listenTo(this.groups, 'reset', this.reset);
this.$sideTips = $('#groups-side-tips');
this.$loadingTip = this.$('.loading-tip');
this.$groupList = $('#group-list');
this.$emptyTip = this.$('.empty-tips');
@@ -82,13 +81,11 @@ define([
},
show: function() {
this.$sideTips.show();
this.$el.show();
this.render();
},
hide: function() {
this.$sideTips.hide();
this.$el.hide();
},