diff --git a/src/UI/UIWindowMoveProgress.js b/src/UI/UIWindowMoveProgress.js index 270e797d..5ec74062 100644 --- a/src/UI/UIWindowMoveProgress.js +++ b/src/UI/UIWindowMoveProgress.js @@ -71,7 +71,7 @@ async function UIWindowMoveProgress(options){ }); $(el_window).find('.move-cancel-btn').on('click', function(e){ - operation_cancelled[options.operation_id] = true; + window.operation_cancelled[options.operation_id] = true; $(el_window).close(); }) diff --git a/src/UI/UIWindowNewFolderProgress.js b/src/UI/UIWindowNewFolderProgress.js index 2975e94a..08d694a4 100644 --- a/src/UI/UIWindowNewFolderProgress.js +++ b/src/UI/UIWindowNewFolderProgress.js @@ -64,7 +64,7 @@ async function UIWindowNewFolderProgress(options){ }); $(el_window).find('.newfolder-cancel-btn').on('click', function(e){ - operation_cancelled[options.operation_id] = true; + window.operation_cancelled[options.operation_id] = true; $(el_window).close(); }) diff --git a/src/UI/UIWindowProgressEmptyTrash.js b/src/UI/UIWindowProgressEmptyTrash.js index b8efabd7..8f8a8aff 100644 --- a/src/UI/UIWindowProgressEmptyTrash.js +++ b/src/UI/UIWindowProgressEmptyTrash.js @@ -64,7 +64,7 @@ async function UIWindowProgressEmptyTrash(options){ }); $(el_window).find('.newfolder-cancel-btn').on('click', function(e){ - operation_cancelled[options.operation_id] = true; + window.operation_cancelled[options.operation_id] = true; $(el_window).close(); })