1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 23:20:51 +00:00

[fileupload] improvement: always full show the popup when upload files; close the popup when navigate away from a 'dir view' page

This commit is contained in:
llj
2017-12-14 17:23:01 +08:00
parent 0ef2a4def0
commit a3600ff488
3 changed files with 8 additions and 0 deletions

View File

@@ -162,6 +162,7 @@ define([
this.direntDetailsView.hide();
this.fileCommentsView.hide();
this.fileUploadView.closePopup();
},
/***** private functions *****/

View File

@@ -99,10 +99,15 @@ define([
if (dirents.user_perm && dirents.user_perm != 'rw') {
return false;
}
popup.removeClass('hide');
cancel_all_btn.removeClass('hide');
close_icon.addClass('hide');
// in case the popup was folded.
popup.height(parseInt(_this.popup_height));
$('.fileupload-buttonbar, table', popup).removeClass('hide');
var path = dirents.path;
popup.fileupload('option', {
'formData': {

View File

@@ -113,6 +113,8 @@ define([
hide: function() {
this.$el.detach();
this.attached = false;
this.fileUploadView.closePopup();
},
show: function(repo_id, path) {