mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-08 10:22:46 +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) {
|
||||
|
@@ -100,6 +100,7 @@
|
||||
</div>
|
||||
<div class="progress-extended"></div>
|
||||
</div>
|
||||
<p class="saving-tip alc hide"><img src="{{MEDIA_URL}}img/loading-icon.gif" alt="" style="margin-right:5px;" class="vam" />{% trans "Saving..." %}</p>
|
||||
</div>
|
||||
<table class="table table-striped"><tbody class="files" data-toggle="modal-gallery" data-target="#modal-gallery"></tbody></table>
|
||||
{% endif %}
|
||||
@@ -135,6 +136,7 @@
|
||||
</div>
|
||||
<div class="progress-extended"></div>
|
||||
</div>
|
||||
<p class="saving-tip alc hide"><img src="{{MEDIA_URL}}img/loading-icon.gif" alt="" style="margin-right:5px;" class="vam" />{% trans "Saving..." %}</p>
|
||||
</div>
|
||||
<table class="table table-striped"><tbody class="files" data-toggle="modal-gallery" data-target="#modal-gallery"></tbody></table>
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user