From dae5815239033bbd475c67a82e341becbbd8e1e6 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Thu, 3 Sep 2020 15:39:11 -0700 Subject: [PATCH] Give #refresh_metadata_button .button_with_spinner. --- frontends/etiquette_flask/templates/photo.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontends/etiquette_flask/templates/photo.html b/frontends/etiquette_flask/templates/photo.html index 0517797..9031530 100644 --- a/frontends/etiquette_flask/templates/photo.html +++ b/frontends/etiquette_flask/templates/photo.html @@ -194,7 +194,7 @@ {% endif %}
  • Download as original filename
  • Download as {{photo.id}}.{{photo.extension}}
  • -
  • +
  • @@ -348,6 +348,11 @@ function generate_thumbnail_for_video(event) api.photos.generate_thumbnail(PHOTO_ID, special, generate_thumbnail_callback) } +function refresh_metadata_form() +{ + api.photos.refresh_metadata(PHOTO_ID, common.refresh); +} + var ZOOM_BG_URL = "url('{{photo|file_link}}')"; function enable_hoverzoom(event) {