mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-27 06:35:51 +08:00
Fix Bug 69992
This commit is contained in:
@ -470,11 +470,7 @@ define([
|
||||
};
|
||||
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.closeBackPluginsTip();
|
||||
});
|
||||
}
|
||||
|
||||
@ -829,7 +825,7 @@ define([
|
||||
},
|
||||
|
||||
parsePlugins: function(pluginsdata, uiCustomize, forceUpdate, fromManager) {
|
||||
this.newInstalledBackgroundPlugins.length = 0;
|
||||
this.closeBackPluginsTip();
|
||||
var me = this;
|
||||
var pluginStore = this.getApplication().getCollection('Common.Collections.Plugins'),
|
||||
isEdit = me.appOptions.isEdit && !me.isPDFEditor,
|
||||
@ -1285,6 +1281,9 @@ define([
|
||||
if (plugins && plugins.length > 0) {
|
||||
var text = plugins.length > 1 ? this.textPluginsSuccessfullyInstalled :
|
||||
Common.Utils.String.format(this.textPluginSuccessfullyInstalled, plugins[0].name);
|
||||
if (this.backgroundPluginsTip && this.backgroundPluginsTip.isVisible()) {
|
||||
this.backgroundPluginsTip.close();
|
||||
}
|
||||
this.backgroundPluginsTip = new Common.UI.SynchronizeTip({
|
||||
extCls: 'colored',
|
||||
placement: 'bottom',
|
||||
@ -1302,19 +1301,21 @@ define([
|
||||
this.newInstalledBackgroundPlugins.length = 0;
|
||||
}, this);
|
||||
this.backgroundPluginsTip.on('closeclick', function () {
|
||||
this.backgroundPluginsTip.close();
|
||||
this.backgroundPluginsTip = undefined;
|
||||
this.newInstalledBackgroundPlugins.length = 0;
|
||||
this.closeBackPluginsTip();
|
||||
}, this);
|
||||
this.backgroundPluginsTip.show();
|
||||
}
|
||||
},
|
||||
|
||||
onActiveTab: function (tab) {
|
||||
if (tab !== 'plugins' && this.backgroundPluginsTip) {
|
||||
(tab !== 'plugins') && this.closeBackPluginsTip();
|
||||
},
|
||||
|
||||
closeBackPluginsTip: function() {
|
||||
if (this.backgroundPluginsTip) {
|
||||
this.backgroundPluginsTip.close();
|
||||
this.backgroundPluginsTip = undefined;
|
||||
this.newInstalledBackgroundPlugins.length = 0;
|
||||
this.newInstalledBackgroundPlugins && (this.newInstalledBackgroundPlugins.length = 0);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user