Oops, fix broken bookmark editing api.js.

This commit is contained in:
voussoir 2019-01-13 14:58:23 -08:00
parent 0eb9addb1c
commit 536531848e

View file

@ -137,12 +137,12 @@ function _delete(bookmark_id, callback)
}
api.bookmarks.edit =
function edit(bookmark_id, title, url, callback)
function edit(bookmark_id, title, b_url, callback)
{
var url = `/bookmark/${bookmark_id}/edit`;
var data = new FormData();
data.append("title", title.trim());
data.append("url", url.trim());
data.append("url", b_url.trim());
common.post(url, data, callback);
}