diff options
Diffstat (limited to 'web/share/js/wm.js')
-rw-r--r-- | web/share/js/wm.js | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/web/share/js/wm.js b/web/share/js/wm.js index 4296800c..c6fe040a 100644 --- a/web/share/js/wm.js +++ b/web/share/js/wm.js @@ -89,20 +89,8 @@ function __WindowManager() { let el_close_button = el_window.querySelector(".window-header .window-button-close"); if (el_close_button) { tools.setOnClick(el_close_button, function() { - let close_window = function() { - __closeWindow(el_window); - __activateLastWindow(el_window); - }; - let confirm_msg = el_window.getAttribute("data-close-confirm"); - if (confirm_msg) { - self.confirm(confirm_msg).then(function(ok) { - if (ok) { - close_window(); - } - }); - } else { - close_window(); - } + __closeWindow(el_window); + __activateLastWindow(el_window); }); } |