mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-03 07:55:36 +00:00
[file upload/update] show 'saving-tip' when progress became '100%'
This commit is contained in:
6
media/js/jquery.fileupload-ui.js
vendored
6
media/js/jquery.fileupload-ui.js
vendored
@@ -137,6 +137,8 @@
|
||||
},
|
||||
// Callback for successful uploads:
|
||||
done: function (e, data) {
|
||||
// hide 'saving-tip'. by lj.
|
||||
$('.saving-tip', $(this)).addClass('hide');
|
||||
var that = $(this).data('fileupload'),
|
||||
template;
|
||||
if (data.context) {
|
||||
@@ -257,6 +259,10 @@
|
||||
._renderExtendedProgress(data)
|
||||
);
|
||||
});
|
||||
// show 'saving' after progress becomes '100%', modified for files in big size. by lj, Wed Dec 18 15:29:19 CST 2013
|
||||
if (data.loaded > 0 && data.loaded == data.total) {
|
||||
$this.find('.saving-tip').removeClass('hide');
|
||||
}
|
||||
},
|
||||
// Callback for uploads start, equivalent to the global ajaxStart event:
|
||||
start: function (e) {
|
||||
|
Reference in New Issue
Block a user