1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-24 21:07:17 +00:00

[dirent details] improvement

This commit is contained in:
llj
2017-07-05 12:17:11 +08:00
parent 5d48dac96c
commit 3905f7b3ef
5 changed files with 51 additions and 14 deletions

View File

@@ -45,13 +45,15 @@ define([
},
update: function(part_data) {
if (part_data.error) {
this.$('.dir-folder-counts, .dir-file-counts, .dir-size')
.html('<span class="error">' + gettext("Error") + '</span>');
var $container = this.$('.details-panel-text-info-container');
$('.loading-icon', $container).hide();
if (part_data.error_msg) {
$('.error', $container).html(part_data.error_msg).show();
} else {
this.$('.dir-folder-counts').html(part_data.dir_count);
this.$('.dir-file-counts').html(part_data.file_count);
this.$('.dir-size').html(part_data.size);
$('table', $container).show();
}
},