diff --git a/apps/presentationeditor/main/app/controller/RightMenu.js b/apps/presentationeditor/main/app/controller/RightMenu.js index 646a27be8..7e8bb56ed 100644 --- a/apps/presentationeditor/main/app/controller/RightMenu.js +++ b/apps/presentationeditor/main/app/controller/RightMenu.js @@ -133,8 +133,8 @@ define([ if (settingsType==Common.Utils.documentSettingsType.Slide) { this._settings[settingsType].locked = value.get_LockDelete(); this._settings[settingsType].lockedBackground = value.get_LockBackground(); - this._settings[settingsType].lockedEffects = value.get_LockTranzition(); - this._settings[settingsType].lockedTiming = value.get_LockTiming(); + this._settings[settingsType].lockedEffects = value.get_LockTransition(); + this._settings[settingsType].lockedTransition = value.get_LockTransition(); this._settings[settingsType].lockedHeader = !!value.get_LockHeader && value.get_LockHeader(); } else { this._settings[settingsType].locked = value.get_Locked(); @@ -179,7 +179,7 @@ define([ if (pnl.locked!==undefined) this.rightmenu.slideSettings.SetSlideDisabled(this._state.no_slides || pnl.lockedBackground || pnl.locked, this._state.no_slides || pnl.lockedEffects || pnl.locked, - this._state.no_slides || pnl.lockedTiming || pnl.locked, + this._state.no_slides || pnl.lockedTransition || pnl.locked, this._state.no_slides || pnl.lockedHeader || pnl.locked); } else pnl.panel.setLocked(pnl.locked); diff --git a/apps/presentationeditor/main/app/controller/Toolbar.js b/apps/presentationeditor/main/app/controller/Toolbar.js index eff06972e..f5ab51492 100644 --- a/apps/presentationeditor/main/app/controller/Toolbar.js +++ b/apps/presentationeditor/main/app/controller/Toolbar.js @@ -885,9 +885,9 @@ define([ for (var i=0; i0.001 || (this._state.Duration===null || value===null)&&(this._state.Duration!==value) || (this._state.Duration===undefined || value===undefined)&&(this._state.Duration!==value) ) { @@ -1396,7 +1397,7 @@ define([ this._state.Duration=value; } - value = timing.get_SlideAdvanceDuration(); + value = transition.get_SlideAdvanceDuration(); if ( Math.abs(this._state.Delay-value)>0.001 || (this._state.Delay===null || value===null)&&(this._state.Delay!==value) || (this._state.Delay===undefined || value===undefined)&&(this._state.Delay!==value) ) { @@ -1404,12 +1405,12 @@ define([ this._state.Delay=value; } - value = timing.get_SlideAdvanceOnMouseClick(); + value = transition.get_SlideAdvanceOnMouseClick(); if ( this._state.OnMouseClick!==value ) { this.chStartOnClick.setValue((value !== null && value !== undefined) ? value : 'indeterminate', true); this._state.OnMouseClick=value; } - value = timing.get_SlideAdvanceAfter(); + value = transition.get_SlideAdvanceAfter(); if ( this._state.AdvanceAfter!==value ) { this.chDelay.setValue((value !== null && value !== undefined) ? value : 'indeterminate', true); this.numDelay.setDisabled(this.chDelay.getValue()!=='checked'); @@ -1503,7 +1504,16 @@ define([ } }, - SetSlideDisabled: function(background, effects, timing, header) { + setLocked: function (background, effects, transition, header) { + this._locked = { + background: background, effects: effects, transition: transition, header: header + }; + }, + + SetSlideDisabled: function(background, effects, transition, header) { + this._locked = { + background: background, effects: effects, transition: transition, header: header + }; if (this._initSettings) return; if (background !== this._stateDisabled.background) { @@ -1521,12 +1531,12 @@ define([ this.btnPreview.setDisabled(length<1 || effects); this._stateDisabled.effects = effects; } - if (timing !== this._stateDisabled.timing) { - this.chStartOnClick.setDisabled(timing); - this.chDelay.setDisabled(timing); - this.numDelay.setDisabled(timing || this.chDelay.getValue()!=='checked'); - this.btnApplyToAll.setDisabled(timing); - this._stateDisabled.timing = timing; + if (transition !== this._stateDisabled.transition) { + this.chStartOnClick.setDisabled(transition); + this.chDelay.setDisabled(transition); + this.numDelay.setDisabled(transition || this.chDelay.getValue()!=='checked'); + this.btnApplyToAll.setDisabled(transition); + this._stateDisabled.transition = transition; } if (header !== this._stateDisabled.header) { this.chSlideNum.setDisabled(header);