Give #refresh_metadata_button .button_with_spinner.
This commit is contained in:
parent
05b39c21fd
commit
dae5815239
1 changed files with 6 additions and 1 deletions
|
@ -194,7 +194,7 @@
|
|||
{% 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">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>
|
||||
</ul>
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue