mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-03-30 11:42:22 -04:00
Update skin.js
This commit is contained in:
@@ -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' });
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user