mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
fix upload hide
This commit is contained in:
@@ -35,7 +35,7 @@ define('uploader', ['csrf'], function(csrf) {
|
|||||||
|
|
||||||
function showAlert(type, message) {
|
function showAlert(type, message) {
|
||||||
module.hideAlerts(uploadModal);
|
module.hideAlerts(uploadModal);
|
||||||
uploadModal.find('#alert-' + type).translateText(message).removeClass('hide');
|
uploadM odal.find('#alert-' + type).translateText(message).removeClass('hide');
|
||||||
}
|
}
|
||||||
|
|
||||||
showAlert('status', '[[uploads:uploading-file]]');
|
showAlert('status', '[[uploads:uploading-file]]');
|
||||||
@@ -73,7 +73,7 @@ define('uploader', ['csrf'], function(csrf) {
|
|||||||
|
|
||||||
showAlert('success', '[[uploads:upload-success]]');
|
showAlert('success', '[[uploads:upload-success]]');
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
module.hideAlerts();
|
module.hideAlerts(uploadModal);
|
||||||
uploadModal.modal('hide');
|
uploadModal.modal('hide');
|
||||||
}, 750);
|
}, 750);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user