mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-04-07 14:06:16 +08:00
[common] Hide background plugins tip by click
This commit is contained in:
@ -470,6 +470,13 @@ define([
|
||||
menu.off('show:before', onShowBefore);
|
||||
};
|
||||
me.viewPlugins.backgroundBtn.menu.on('show:before', onShowBefore);
|
||||
me.viewPlugins.backgroundBtn.on('click', function () {
|
||||
if (me.backgroundPluginsTip) {
|
||||
me.backgroundPluginsTip.close();
|
||||
me.backgroundPluginsTip = undefined;
|
||||
me.newInstalledBackgroundPlugins && (me.newInstalledBackgroundPlugins.length = 0);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
me.toolbar && me.toolbar.isTabActive('plugins') && me.toolbar.processPanelVisible(null, true);
|
||||
|
||||
Reference in New Issue
Block a user