From 9f8aa78d8b122b79bdb0bf68819da8a38ab1ac16 Mon Sep 17 00:00:00 2001 From: SillyLossy Date: Mon, 17 Apr 2023 22:30:02 +0300 Subject: [PATCH] Fix custom bg opacity animation --- public/scripts/extensions/backgrounds/index.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/public/scripts/extensions/backgrounds/index.js b/public/scripts/extensions/backgrounds/index.js index 4ae8d389a..5363b1113 100644 --- a/public/scripts/extensions/backgrounds/index.js +++ b/public/scripts/extensions/backgrounds/index.js @@ -73,19 +73,8 @@ function setCustomBackground() { $("#custom_bg_preview").css("background-image", file); } -function animateBgSet(selector, value) { - $(selector).animate({ - opacity: 0 - }, 500, - function () { - $(this).css('background-image', value).animate({ - opacity: 1 - }, 500); - }); -} - function unsetCustomBackground() { - animateBgSet("#bg_custom", 'none'); + $("#bg_custom").css("background-image", 'none'); $("#custom_bg_preview").css("background-image", 'none'); }