Oops, fix broken clipboard reference due to namespace change.

This commit is contained in:
voussoir 2018-07-28 16:15:15 -07:00
parent 89850497da
commit dfff79baa7

View file

@ -140,7 +140,7 @@ var ALBUM_ID = "{{album.id}}";
function _paste_unpaste_photo_clipboard(add_or_remove)
{
var photo_ids = Array.from(photo_clipboard).join(",");
var photo_ids = Array.from(photo_clipboard.clipboard).join(",");
var url = "/album/{{album.id}}/" + add_or_remove;
var data = new FormData();
data.append("photo_id", photo_ids);
@ -150,7 +150,6 @@ function _paste_unpaste_photo_clipboard(add_or_remove)
{
return;
}
save_photo_clipboard();
location.reload();
};
common.post(url, data, callback);