mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-16 07:08:55 +00:00
Merge branch '6.3'
This commit is contained in:
@@ -106,6 +106,14 @@ define([
|
||||
}
|
||||
});
|
||||
|
||||
// confirm leaving the page when file is uploading
|
||||
window.onbeforeunload = function(e) {
|
||||
if ($('#upload-file-dialog').is(':visible') &&
|
||||
$('#upload-file-dialog .status').text() == window.fileuploading) {
|
||||
return '';
|
||||
}
|
||||
};
|
||||
|
||||
},
|
||||
|
||||
renderMainCon: function() {
|
||||
|
@@ -49,6 +49,8 @@ define([
|
||||
'canceled': gettext("File Upload canceled"),
|
||||
'failed': gettext("File Upload failed")
|
||||
};
|
||||
// for the leaving page confirm popup
|
||||
window.fileuploading = fu_status.uploading;
|
||||
|
||||
var uploaded_files = [];
|
||||
var updated_files = [];
|
||||
|
Reference in New Issue
Block a user