Skip to content

Commit

Permalink
Fix success clear
Browse files Browse the repository at this point in the history
  • Loading branch information
eamahanna committed Oct 23, 2020
1 parent e1baef8 commit a703fef
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ define([
})
.on('success', (file, serverResponse) => {
var $successElem = $(file.previewElement);
$successElem.find('#upload_progress_and_cancel').remove();
$successElem.find('#upload_progress_and_cancel').hide();
$successElem.find('#dz_file_row_1').css({"display": "flex", "align-items": "center"});
$successElem.find('#success_icon').css('display', 'flex');
$successElem.find('#success_message').css('display', 'inline');
Expand Down Expand Up @@ -129,7 +129,7 @@ define([
})
.on('error', (erroredFile) => {
var $errorElem = $(erroredFile.previewElement);
$errorElem.find('#upload_progress_and_cancel').remove();
$errorElem.find('#upload_progress_and_cancel').hide();
$errorElem.find('#dz_file_row_1').css({"display": "flex", "align-items": "center"});
$errorElem.css('color', '#DF0002');
$errorElem.find('#error_icon').css('display', 'flex');
Expand Down

0 comments on commit a703fef

Please sign in to comment.