Skip to content

Commit ccfb72d

Browse files
authored
bugfix: clear loader image properly (#1136)
1 parent 78000d6 commit ccfb72d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

assets/js/core.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,7 @@ const photoBooth = (function () {
423423
api.navbar.close();
424424
api.reset();
425425
api.closeGallery();
426+
api.clearLoaderImage();
426427

427428
remoteBuzzerClient.inProgress(photoStyle);
428429
api.takingPic = true;
@@ -661,7 +662,6 @@ const photoBooth = (function () {
661662
takePictureButton.appendTo(loaderButtonBar).on('click', (event) => {
662663
event.stopPropagation();
663664
event.preventDefault();
664-
api.clearLoaderImage();
665665
imageUrl = '';
666666
api.thrill(PhotoStyle.COLLAGE);
667667
});
@@ -681,7 +681,6 @@ const photoBooth = (function () {
681681
collageProcessButton.appendTo(loaderButtonBar).on('click', (event) => {
682682
event.stopPropagation();
683683
event.preventDefault();
684-
api.clearLoaderImage();
685684
imageUrl = '';
686685
currentCollageFile = '';
687686
api.nextCollageNumber = 0;
@@ -700,7 +699,6 @@ const photoBooth = (function () {
700699
retakeButton.appendTo(loaderButtonBar).on('click', (event) => {
701700
event.stopPropagation();
702701
event.preventDefault();
703-
api.clearLoaderImage();
704702
imageUrl = '';
705703
api.deleteImage(result.collage_file, () => {
706704
setTimeout(function () {

0 commit comments

Comments
 (0)