From 41011810925ac9d3f662b8cd75b657da9ddf60ad Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 18 Mar 2022 16:43:44 +0300 Subject: [PATCH] [PE] Fix duration for multiple animation --- apps/presentationeditor/main/app/controller/Animation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/presentationeditor/main/app/controller/Animation.js b/apps/presentationeditor/main/app/controller/Animation.js index a7e656c77..8870ab28f 100644 --- a/apps/presentationeditor/main/app/controller/Animation.js +++ b/apps/presentationeditor/main/app/controller/Animation.js @@ -206,7 +206,7 @@ define([ if (!item) { var expr = new RegExp('^\\s*(\\d*(\\.|,)?\\d+)\\s*(' + me.view.txtSec + ')?\\s*$'); if (!expr.exec(record.value)) { - combo.setValue(this._state.Duration, this._state.Duration>=0 ? this._state.Duration + ' ' + this.view.txtSec : 1); + combo.setValue(this._state.Duration, this._state.Duration>=0 ? this._state.Duration + ' ' + this.view.txtSec : ''); e.preventDefault(); return false; } @@ -447,7 +447,7 @@ define([ if (this._state.noAnimationDuration) view.cmbDuration.setValue(''); else - view.cmbDuration.setValue(this._state.Duration, this._state.Duration>=0 ? this._state.Duration + ' ' + this.view.txtSec : 1); + view.cmbDuration.setValue(this._state.Duration, this._state.Duration>=0 ? this._state.Duration + ' ' + this.view.txtSec : ''); value = this.AnimationProperties.asc_getDelay(); if (Math.abs(this._state.Delay - value) > 0.001 ||