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:
@@ -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',
|
||||
|
@@ -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();
|
||||
}
|
||||
|
||||
});
|
||||
|
@@ -119,6 +119,7 @@ define([
|
||||
hide: function() {
|
||||
this.$sideNav.hide();
|
||||
this.hideRepoList();
|
||||
this.$emptyTip.hide();
|
||||
this.dirView.hide();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user