Skip to content

Commit 51bb418

Browse files
committed
remove more calls to deprecated endpoints
1 parent 0094e2e commit 51bb418

File tree

1 file changed

+0
-43
lines changed

1 file changed

+0
-43
lines changed

src/helpers.js

-43
Original file line numberDiff line numberDiff line change
@@ -2455,27 +2455,6 @@ window.move_items = async function(el_items, dest_path, is_undo = false){
24552455
}
24562456

24572457
if(dest_path === trash_path){
2458-
// remove Public Token
2459-
// todo, some client-side check to see if this dir has an FR associated with it before sending a whole ajax req
2460-
$.ajax({
2461-
url: api_origin + "/removepubtok",
2462-
type: 'POST',
2463-
data: JSON.stringify({
2464-
uid: $(el_item).attr('data-uid'),
2465-
}),
2466-
async: true,
2467-
contentType: "application/json",
2468-
headers: {
2469-
"Authorization": "Bearer "+auth_token
2470-
},
2471-
statusCode: {
2472-
401: function () {
2473-
logout();
2474-
},
2475-
},
2476-
success: function (){
2477-
}
2478-
})
24792458
// if trashing dir...
24802459
if($(el_item).attr('data-is_dir') === '1'){
24812460
// disassociate all its websites
@@ -2485,28 +2464,6 @@ window.move_items = async function(el_items, dest_path, is_undo = false){
24852464
$(`.mywebsites-dir-path[data-uuid="${$(el_item).attr('data-uid')}"]`).remove();
24862465
// remove the website badge from all instances of the dir
24872466
$(`.item[data-uid="${$(el_item).attr('data-uid')}"]`).find('.item-has-website-badge').fadeOut(300);
2488-
2489-
// remove File Rrequest Token
2490-
// todo, some client-side check to see if this dir has an FR associated with it before sending a whole ajax req
2491-
$.ajax({
2492-
url: api_origin + "/removefr",
2493-
type: 'POST',
2494-
data: JSON.stringify({
2495-
dir_uid: $(el_item).attr('data-uid'),
2496-
}),
2497-
async: true,
2498-
contentType: "application/json",
2499-
headers: {
2500-
"Authorization": "Bearer "+auth_token
2501-
},
2502-
statusCode: {
2503-
401: function () {
2504-
logout();
2505-
},
2506-
},
2507-
success: function (){
2508-
}
2509-
})
25102467
}
25112468
}
25122469

0 commit comments

Comments
 (0)