Fix photo.html endpoint urls.
This commit is contained in:
parent
1a4a0f8560
commit
251bc04459
1 changed files with 3 additions and 3 deletions
|
@ -265,7 +265,7 @@ var message_area = document.getElementById('message_area');
|
||||||
|
|
||||||
function add_photo_tag(photo_id, tagname, callback)
|
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();
|
var data = new FormData();
|
||||||
data.append("tagname", tagname);
|
data.append("tagname", tagname);
|
||||||
return common.post(url, data, callback);
|
return common.post(url, data, callback);
|
||||||
|
@ -282,9 +282,9 @@ function add_photo_tag_form(photo_id)
|
||||||
return ret;
|
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();
|
var data = new FormData();
|
||||||
data.append("tagname", tagname);
|
data.append("tagname", tagname);
|
||||||
return common.post(url, data, callback);
|
return common.post(url, data, callback);
|
||||||
|
|
Loading…
Reference in a new issue