1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 15:38:15 +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({
routes: {
'': 'showMyRepos',
'my-libs/': 'showMyRepos',
'my-libs/lib/:repo_id(/*path)': 'showMyRepoDir',
'my-sub-libs/': 'showMySubRepos',

View File

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

View File

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