Give #refresh_metadata_button .button_with_spinner.

This commit is contained in:
voussoir 2020-09-03 15:39:11 -07:00
parent 05b39c21fd
commit dae5815239

View file

@ -194,7 +194,7 @@
{% endif %} {% endif %}
<li><a href="{{photo|file_link}}?download=true&original_filename=true">Download as original filename</a></li> <li><a href="{{photo|file_link}}?download=true&original_filename=true">Download as original filename</a></li>
<li><a href="{{photo|file_link}}?download=true">Download as {{photo.id}}.{{photo.extension}}</a></li> <li><a href="{{photo|file_link}}?download=true">Download as {{photo.id}}.{{photo.extension}}</a></li>
<li><button id="refresh_metadata_button" class="green_button" onclick="api.photos.refresh_metadata('{{photo.id}}', common.refresh);">refresh</button></li> <li><button id="refresh_metadata_button" class="green_button button_with_spinner" onclick="refresh_metadata_form();">refresh</button></li>
<li><label class="photo_card" data-id="{{photo.id}}"><input type="checkbox" class="photo_card_selector_checkbox" onclick="photo_clipboard.on_photo_select(event)"/>Clipboard</label></li> <li><label class="photo_card" data-id="{{photo.id}}"><input type="checkbox" class="photo_card_selector_checkbox" onclick="photo_clipboard.on_photo_select(event)"/>Clipboard</label></li>
</ul> </ul>
@ -348,6 +348,11 @@ function generate_thumbnail_for_video(event)
api.photos.generate_thumbnail(PHOTO_ID, special, generate_thumbnail_callback) 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}}')"; var ZOOM_BG_URL = "url('{{photo|file_link}}')";
function enable_hoverzoom(event) function enable_hoverzoom(event)
{ {