Oops, fix broken bookmark editing api.js.
This commit is contained in:
parent
0eb9addb1c
commit
536531848e
1 changed files with 2 additions and 2 deletions
|
@ -137,12 +137,12 @@ function _delete(bookmark_id, callback)
|
||||||
}
|
}
|
||||||
|
|
||||||
api.bookmarks.edit =
|
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 url = `/bookmark/${bookmark_id}/edit`;
|
||||||
var data = new FormData();
|
var data = new FormData();
|
||||||
data.append("title", title.trim());
|
data.append("title", title.trim());
|
||||||
data.append("url", url.trim());
|
data.append("url", b_url.trim());
|
||||||
common.post(url, data, callback);
|
common.post(url, data, callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue