From 7fb8166e7b4ecb0fb6c3adbf1b67e94e0ac8b254 Mon Sep 17 00:00:00 2001 From: SillyLossy Date: Mon, 27 Mar 2023 18:27:43 +0300 Subject: [PATCH] Don't switch BG on delete click --- public/script.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/script.js b/public/script.js index 7d845a195..61beb9a3b 100644 --- a/public/script.js +++ b/public/script.js @@ -3272,7 +3272,8 @@ $(document).ready(function () { ); setBackground(this_bgfile); }); - $(document).on("click", ".bg_example_cross", function () { + $(document).on("click", ".bg_example_cross", function (e) { + e.stopPropagation(); bg_file_for_del = $(this); //$(this).parent().remove(); //delBackground(this_bgfile);