1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 07:27:04 +00:00

Improve of empty tip hiding

This commit is contained in:
Daniel Pan
2015-04-14 14:48:56 +08:00
parent 4215d935c6
commit f8750ecfae
3 changed files with 5 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ define([
var Router = Backbone.Router.extend({ var Router = Backbone.Router.extend({
routes: { routes: {
'': 'showMyRepos',
'my-libs/': 'showMyRepos', 'my-libs/': 'showMyRepos',
'my-libs/lib/:repo_id(/*path)': 'showMyRepoDir', 'my-libs/lib/:repo_id(/*path)': 'showMyRepoDir',
'my-sub-libs/': 'showMySubRepos', 'my-sub-libs/': 'showMySubRepos',

View File

@@ -73,7 +73,9 @@ define([
this.group_id = group_id; this.group_id = group_id;
this.showSideNav(); this.showSideNav();
this.dirView.hide(); this.dirView.hide();
this.$emptyTip.hide();
this.$tabs.show(); this.$tabs.show();
this.$table.hide();
this.repos.setGroupID(group_id); this.repos.setGroupID(group_id);
this.repos.fetch({reset: true}); this.repos.fetch({reset: true});
this.$loadingTip.show(); this.$loadingTip.show();
@@ -140,6 +142,7 @@ define([
this.sideNavView.hide(); this.sideNavView.hide();
this.hideRepoList(); this.hideRepoList();
this.dirView.hide(); this.dirView.hide();
this.$emptyTip.hide();
} }
}); });

View File

@@ -119,6 +119,7 @@ define([
hide: function() { hide: function() {
this.$sideNav.hide(); this.$sideNav.hide();
this.hideRepoList(); this.hideRepoList();
this.$emptyTip.hide();
this.dirView.hide(); this.dirView.hide();
} }