mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-20 19:08:21 +00:00
[myhome] bind repo events when initilize myhome view
This commit is contained in:
@@ -30,9 +30,9 @@ define([
|
|||||||
this.$el.ajaxStart(this.ajaxLoadingShow).ajaxStop(this.ajaxLoadingHide);
|
this.$el.ajaxStart(this.ajaxLoadingShow).ajaxStop(this.ajaxLoadingHide);
|
||||||
|
|
||||||
// this.on('showDirents', this.showDirents, this);
|
// this.on('showDirents', this.showDirents, this);
|
||||||
|
this.initializeRepos();
|
||||||
|
|
||||||
this.$repoTabs = this.$('#repo-tabs');
|
this.$repoTabs = this.$('#repo-tabs');
|
||||||
|
|
||||||
this.$cont = this.$('#right-panel');
|
this.$cont = this.$('#right-panel');
|
||||||
this.$table = this.$('#my-own-repos table');
|
this.$table = this.$('#my-own-repos table');
|
||||||
this.$tableHead = $('thead', this.$table);
|
this.$tableHead = $('thead', this.$table);
|
||||||
@@ -115,7 +115,6 @@ define([
|
|||||||
|
|
||||||
showRepoList: function() {
|
showRepoList: function() {
|
||||||
console.log('show repo list');
|
console.log('show repo list');
|
||||||
this.initializeRepos();
|
|
||||||
Repos.fetch({reset: true});
|
Repos.fetch({reset: true});
|
||||||
|
|
||||||
this.dirView.hide();
|
this.dirView.hide();
|
||||||
@@ -136,26 +135,6 @@ define([
|
|||||||
new AddRepoView();
|
new AddRepoView();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
addOneDirent: function(dirent) {
|
|
||||||
var view = new DirentView({model: dirent});
|
|
||||||
this.$repoList.append(view.render().el);
|
|
||||||
},
|
|
||||||
|
|
||||||
addAllDirent: function() {
|
|
||||||
this.$repoList.empty();
|
|
||||||
this.dirents.each(this.addOneDirent, this);
|
|
||||||
},
|
|
||||||
|
|
||||||
renderDirent: function(eventName) {
|
|
||||||
console.log('render dirents with event: ' + eventName);
|
|
||||||
if (this.dirents.length) {
|
|
||||||
this.$mine.show();
|
|
||||||
}
|
|
||||||
},*/
|
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
return MyHomeView;
|
return MyHomeView;
|
||||||
|
Reference in New Issue
Block a user