Fix metadata spinner not closing when 0 items on clipboard.
This commit is contained in:
parent
2f5510fd0c
commit
634f6f5188
1 changed files with 4 additions and 1 deletions
|
@ -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(",");
|
||||
|
|
Loading…
Reference in a new issue