mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-12 04:10:47 +00:00
[mobile] dir view, group: modification
This commit is contained in:
@@ -169,10 +169,24 @@ define([
|
||||
reset: function() {
|
||||
this.renderPath();
|
||||
this.renderDirOpBar();
|
||||
|
||||
this.$el_con.show();
|
||||
|
||||
if (this.view_mode == 'list') {
|
||||
this.renderDirentsHd();
|
||||
}
|
||||
|
||||
this.$dirent_grid.empty();
|
||||
this.$dirent_list_body.empty();
|
||||
|
||||
if (this.view_mode == 'list') {
|
||||
this.$dirent_list.show();
|
||||
this.$dirent_grid.hide();
|
||||
} else {
|
||||
this.$dirent_list.hide();
|
||||
this.$dirent_grid.show();
|
||||
}
|
||||
|
||||
// sort
|
||||
Common.updateSortIconByMode({'context': this.$el});
|
||||
this.sortDirents();
|
||||
@@ -343,18 +357,8 @@ define([
|
||||
renderDir: function() {
|
||||
this.$loading_tip.show();
|
||||
this.$error.hide();
|
||||
this.$el_con.show();
|
||||
this.$el_con.hide();
|
||||
|
||||
this.$dirent_grid.empty();
|
||||
this.$dirent_list_body.empty();
|
||||
|
||||
if (this.view_mode == 'list') {
|
||||
this.$dirent_list.show();
|
||||
this.$dirent_grid.hide();
|
||||
} else {
|
||||
this.$dirent_list.hide();
|
||||
this.$dirent_grid.show();
|
||||
}
|
||||
|
||||
var _this = this;
|
||||
var thumbnail_size = app.pageOptions.thumbnail_default_size;
|
||||
|
Reference in New Issue
Block a user