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:
@@ -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',
|
||||||
|
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user