mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
[home] fix event to hide panel
This commit is contained in:
@ -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']();
|
||||
|
||||
Reference in New Issue
Block a user