1
0
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:
llj
2016-12-14 16:31:37 +08:00
parent 2d7f5339c3
commit f4eacae253
3 changed files with 23 additions and 13 deletions

View File

@@ -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;