From ece37b62f21bcb3381eabb93e9d5ad7148fc7b0b Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Wed, 1 May 2024 16:58:45 +0100 Subject: [PATCH] chore: Clarify usage of window fields in progress dialogs /puter/src/UI/UIWindowMoveProgress.js 74:9 error 'operation_cancelled' is not defined no-undef /puter/src/UI/UIWindowNewFolderProgress.js 67:9 error 'operation_cancelled' is not defined no-undef /puter/src/UI/UIWindowProgressEmptyTrash.js 67:9 error 'operation_cancelled' is not defined no-undef --- src/UI/UIWindowMoveProgress.js | 2 +- src/UI/UIWindowNewFolderProgress.js | 2 +- src/UI/UIWindowProgressEmptyTrash.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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(); })