[PE] Change duration combobox in animation tab (show only seconds)
This commit is contained in:
parent
a1a2aa919f
commit
d9ef7a349f
|
@ -710,8 +710,8 @@ define([
|
||||||
this.options.updateFormControl.call(this, this._selectedItem);
|
this.options.updateFormControl.call(this, this._selectedItem);
|
||||||
},
|
},
|
||||||
|
|
||||||
setValue: function(value) {
|
setValue: function(value, defValue) {
|
||||||
Common.UI.ComboBox.prototype.setValue.call(this, value);
|
Common.UI.ComboBox.prototype.setValue.call(this, value, defValue);
|
||||||
if (this.options.updateFormControl)
|
if (this.options.updateFormControl)
|
||||||
this.options.updateFormControl.call(this, this._selectedItem);
|
this.options.updateFormControl.call(this, this._selectedItem);
|
||||||
},
|
},
|
||||||
|
|
|
@ -187,6 +187,7 @@ define([
|
||||||
this.toolbar = options.toolbar;
|
this.toolbar = options.toolbar;
|
||||||
this.appConfig = options.mode;
|
this.appConfig = options.mode;
|
||||||
this.$el = this.toolbar.toolbar.$el.find('#animation-panel');
|
this.$el = this.toolbar.toolbar.$el.find('#animation-panel');
|
||||||
|
var me = this;
|
||||||
var _set = Common.enumLock;
|
var _set = Common.enumLock;
|
||||||
this.lockedControls = [];
|
this.lockedControls = [];
|
||||||
this._arrEffectName = [{group:'none', value: AscFormat.ANIM_PRESET_NONE, iconCls: 'animation-none', displayValue: this.textNone}].concat(Common.define.effectData.getEffectData());
|
this._arrEffectName = [{group:'none', value: AscFormat.ANIM_PRESET_NONE, iconCls: 'animation-none', displayValue: this.textNone}].concat(Common.define.effectData.getEffectData());
|
||||||
|
@ -293,7 +294,7 @@ define([
|
||||||
|
|
||||||
this.lockedControls.push(this.btnAddAnimation);
|
this.lockedControls.push(this.btnAddAnimation);
|
||||||
|
|
||||||
this.cmbDuration = new Common.UI.ComboBox({
|
this.cmbDuration = new Common.UI.ComboBoxCustom({
|
||||||
el: this.$el.find('#animation-spin-duration'),
|
el: this.$el.find('#animation-spin-duration'),
|
||||||
cls: 'input-group-nr',
|
cls: 'input-group-nr',
|
||||||
menuStyle: 'min-width: 100%;',
|
menuStyle: 'min-width: 100%;',
|
||||||
|
@ -309,7 +310,10 @@ define([
|
||||||
lock: [_set.slideDeleted, _set.noSlides, _set.noGraphic, _set.noAnimation, _set.noAnimationDuration, _set.timingLock],
|
lock: [_set.slideDeleted, _set.noSlides, _set.noGraphic, _set.noAnimation, _set.noAnimationDuration, _set.timingLock],
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'top',
|
dataHintDirection: 'top',
|
||||||
dataHintOffset: 'small'
|
dataHintOffset: 'small',
|
||||||
|
updateFormControl: function(record) {
|
||||||
|
record && this.setRawValue(record.get('value') + ' ' + me.txtSec);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
this.lockedControls.push(this.cmbDuration);
|
this.lockedControls.push(this.cmbDuration);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue