@@ -2455,27 +2455,6 @@ window.move_items = async function(el_items, dest_path, is_undo = false){
2455
2455
}
2456
2456
2457
2457
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
- } )
2479
2458
// if trashing dir...
2480
2459
if ( $ ( el_item ) . attr ( 'data-is_dir' ) === '1' ) {
2481
2460
// disassociate all its websites
@@ -2485,28 +2464,6 @@ window.move_items = async function(el_items, dest_path, is_undo = false){
2485
2464
$ ( `.mywebsites-dir-path[data-uuid="${ $ ( el_item ) . attr ( 'data-uid' ) } "]` ) . remove ( ) ;
2486
2465
// remove the website badge from all instances of the dir
2487
2466
$ ( `.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
- } )
2510
2467
}
2511
2468
}
2512
2469
0 commit comments