From a73295e221c0e963cee2213819c843ee1fed37ca Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Sat, 17 Apr 2021 11:24:16 +0300 Subject: removed stream close confirm, added tip for msd --- web/share/js/wm.js | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'web/share/js/wm.js') 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); }); } -- cgit v1.2.3