From 165bd012ac3ef0f7f644fc8e443b2b587bb4abcc Mon Sep 17 00:00:00 2001 From: IgorA100 Date: Thu, 21 Mar 2024 22:13:54 +0300 Subject: [PATCH] Update skin.js --- web/skins/classic/js/skin.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/skins/classic/js/skin.js b/web/skins/classic/js/skin.js index 9e1a4ad05..f7d4d91ae 100644 --- a/web/skins/classic/js/skin.js +++ b/web/skins/classic/js/skin.js @@ -318,20 +318,21 @@ if ( currentView != 'none' && currentView != 'login' ) { const objIconButton = _this_.find("i"); const obj = $j(_this_.attr('data-flip-сontrol-object')); + obj.removeClass('hidden'); if (сookie == 'hidden') { if (objIconButton.is('[class="material-icons"]')) { // use material-icons objIconButton.html(objIconButton.attr('data-icon-hidden')); } else if (objIconButton.is('[class^="fa-"]')) { //use Font Awesome objIconButton.addClass(objIconButton.attr('data-icon-hidden')); } - obj.css("display", "none"); + obj.css({ 'display' : 'none' }); } else { //no cookies or opened. if (objIconButton.is('[class="material-icons"]')) { // use material-icons objIconButton.html(objIconButton.attr('data-icon-visible')); } else if (objIconButton.is('[class^="fa-"]')) { //use Font Awesome objIconButton.addClass(objIconButton.attr('data-icon-visible')); } - obj.css("display", "unset"); + obj.css({ 'display' : 'block' }); } });