Skip to content

Commit

Permalink
upload success message should not show popup
Browse files Browse the repository at this point in the history
  • Loading branch information
streamtw committed Jul 13, 2017
1 parent 990bdee commit f5ec3b4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion public/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,13 @@ function displayErrorResponse(jqXHR) {

function displaySuccessMessage(data){
if(data == 'OK'){
notify('File Uploaded Successfully');
var success = $('<div>').addClass('alert alert-success')
.append($('<i>').addClass('fa fa-check'))
.append(' File Uploaded Successfully.');
$('#alerts').append(success);
setTimeout(function () {
success.remove();
}, 2000);
}
}

Expand Down

0 comments on commit f5ec3b4

Please sign in to comment.