From 634f6f5188b8a572c98a8dc5c39243ef09ad15ab Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Thu, 28 May 2020 19:02:07 -0700 Subject: [PATCH] Fix metadata spinner not closing when 0 items on clipboard. --- frontends/etiquette_flask/templates/clipboard.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontends/etiquette_flask/templates/clipboard.html b/frontends/etiquette_flask/templates/clipboard.html index 71fe6b3..f9d71ad 100644 --- a/frontends/etiquette_flask/templates/clipboard.html +++ b/frontends/etiquette_flask/templates/clipboard.html @@ -326,7 +326,10 @@ function refresh_metadata_callback(response) function refresh_metadata_form() { if (photo_clipboard.clipboard.size == 0) - {return;} + { + window[refresh_metadata_button.dataset.spinnerCloser](); + return; + } var url = "/batch/photos/refresh_metadata"; var photo_ids = Array.from(photo_clipboard.clipboard).join(",");