summaryrefslogtreecommitdiff
path: root/web/share/js/wm.js
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2021-04-17 11:24:16 +0300
committerDevaev Maxim <[email protected]>2021-04-17 11:24:16 +0300
commita73295e221c0e963cee2213819c843ee1fed37ca (patch)
treee6daa037a1106e622bfd3cbbb1a6174ea79c9d01 /web/share/js/wm.js
parentcacb12791b1d914111f566dcc2f992b34e744d10 (diff)
removed stream close confirm, added tip for msd
Diffstat (limited to 'web/share/js/wm.js')
-rw-r--r--web/share/js/wm.js16
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);
});
}