Fix removing items from closet

This commit is contained in:
printempw 2017-08-06 22:40:30 +08:00
parent 86c5343c55
commit efb7cf07e5

View File

@ -170,7 +170,7 @@ function renameClosetItem(tid, oldName) {
}))
}).then(name => fetch({
type: 'POST',
url: url('closet/rename'),
url: url('user/closet/rename'),
dataType: 'json',
data: { tid: tid, new_name: name }
})).then(({ errno, msg }) => {
@ -190,7 +190,7 @@ function removeFromCloset(tid) {
showCancelButton: true
}).then(() => fetch({
type: 'POST',
url: url('closet/remove'),
url: url('user/closet/remove'),
dataType: 'json',
data: { tid: tid }
})).then(({ errno, msg }) => {