[home] fix event to hide panel

This commit is contained in:
maxkadushkin
2025-06-09 00:47:46 +03:00
parent 75cbd7db0d
commit 967a812280

View File

@ -235,6 +235,12 @@ function selectAction(action) {
};
function hideAction(action, hide) {
if ( action == 'connect' ) {
hide ? $('#idx-sidebar-portals').hide() :
$('#idx-sidebar-portals').show();
return;
}
var mitem = $('.tool-menu a[action='+action+']').parent();
mitem.removeClass('extra')[hide===false?'show':'hide']();
$('.action-panel.' + action)[hide===false?'show':'hide']();