Skip to content

Commit f5ec3b4

Browse files
committed
upload success message should not show popup
1 parent 990bdee commit f5ec3b4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

public/js/script.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,13 @@ function displayErrorResponse(jqXHR) {
159159

160160
function displaySuccessMessage(data){
161161
if(data == 'OK'){
162-
notify('File Uploaded Successfully');
162+
var success = $('<div>').addClass('alert alert-success')
163+
.append($('<i>').addClass('fa fa-check'))
164+
.append(' File Uploaded Successfully.');
165+
$('#alerts').append(success);
166+
setTimeout(function () {
167+
success.remove();
168+
}, 2000);
163169
}
164170
}
165171

0 commit comments

Comments
 (0)