From 251bc04459a4dbc908d82a7310faddb5d786a36d Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Thu, 16 Aug 2018 19:45:47 -0700 Subject: [PATCH] Fix photo.html endpoint urls. --- frontends/etiquette_flask/templates/photo.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontends/etiquette_flask/templates/photo.html b/frontends/etiquette_flask/templates/photo.html index ae047d7..5a9a63c 100644 --- a/frontends/etiquette_flask/templates/photo.html +++ b/frontends/etiquette_flask/templates/photo.html @@ -265,7 +265,7 @@ var message_area = document.getElementById('message_area'); function add_photo_tag(photo_id, tagname, callback) { - var url = `/photo/${photoid}/add_tag`; + var url = `/photo/${photo_id}/add_tag`; var data = new FormData(); data.append("tagname", tagname); return common.post(url, data, callback); @@ -282,9 +282,9 @@ function add_photo_tag_form(photo_id) return ret; } -function remove_photo_tag(photoid, tagname, callback) +function remove_photo_tag(photo_id, tagname, callback) { - var url = "/photo/" + photoid + "/remove_tag"; + var url = `/photo/${photo_id}/remove_tag`; var data = new FormData(); data.append("tagname", tagname); return common.post(url, data, callback);