mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-04-07 14:06:16 +08:00
[desktop] Hide macros btn for win xp
This commit is contained in:
@ -181,7 +181,11 @@ define([
|
||||
me.view.$el.find('.separator-rulers').remove();
|
||||
}
|
||||
|
||||
if (!config.isEdit || config.customization && config.customization.macros===false) {
|
||||
if (
|
||||
!config.isEdit ||
|
||||
config.customization && config.customization.macros===false ||
|
||||
(Common.Controllers.Desktop && Common.Controllers.Desktop.isWinXp())
|
||||
) {
|
||||
me.view.$el.find('.macro').remove();
|
||||
}
|
||||
|
||||
|
||||
@ -293,7 +293,11 @@ define([
|
||||
});
|
||||
this.lockedControls.push(this.chRulers);
|
||||
|
||||
if (this.appConfig.isEdit && !(this.appConfig.customization && this.appConfig.customization.macros===false)) {
|
||||
if (
|
||||
this.appConfig.isEdit &&
|
||||
!(this.appConfig.customization && this.appConfig.customization.macros===false) &&
|
||||
!(Common.Controllers.Desktop && Common.Controllers.Desktop.isWinXp())
|
||||
) {
|
||||
this.btnMacros = new Common.UI.Button({
|
||||
cls: 'btn-toolbar x-huge icon-top',
|
||||
iconCls: 'toolbar__icon btn-macros',
|
||||
|
||||
Reference in New Issue
Block a user