From 0a318baea9043cc66d1e3c86fad9d992eb994af8 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sat, 29 Oct 2022 14:17:33 -0700 Subject: [PATCH] After deleting a photo, go to root instead of search. --- frontends/etiquette_flask/templates/photo.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontends/etiquette_flask/templates/photo.html b/frontends/etiquette_flask/templates/photo.html index a16e5e5..70f38db 100644 --- a/frontends/etiquette_flask/templates/photo.html +++ b/frontends/etiquette_flask/templates/photo.html @@ -433,12 +433,12 @@ function add_remove_photo_tag_callback(response) function delete_photo_form() { - api.photos.delete(PHOTO_ID, false, api.photos.callback_go_to_search); + api.photos.delete(PHOTO_ID, false, common.go_to_root); } function delete_photo_from_disk_form() { - api.photos.delete(PHOTO_ID, true, api.photos.callback_go_to_search); + api.photos.delete(PHOTO_ID, true, common.go_to_root); } function generate_thumbnail_for_video_form()