[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);
|
||||
},
|
||||
|
||||
setValue: function(value) {
|
||||
Common.UI.ComboBox.prototype.setValue.call(this, value);
|
||||
setValue: function(value, defValue) {
|
||||
Common.UI.ComboBox.prototype.setValue.call(this, value, defValue);
|
||||
if (this.options.updateFormControl)
|
||||
this.options.updateFormControl.call(this, this._selectedItem);
|
||||
},
|
||||
|
|
|
@ -187,6 +187,7 @@ define([
|
|||
this.toolbar = options.toolbar;
|
||||
this.appConfig = options.mode;
|
||||
this.$el = this.toolbar.toolbar.$el.find('#animation-panel');
|
||||
var me = this;
|
||||
var _set = Common.enumLock;
|
||||
this.lockedControls = [];
|
||||
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.cmbDuration = new Common.UI.ComboBox({
|
||||
this.cmbDuration = new Common.UI.ComboBoxCustom({
|
||||
el: this.$el.find('#animation-spin-duration'),
|
||||
cls: 'input-group-nr',
|
||||
menuStyle: 'min-width: 100%;',
|
||||
|
@ -309,7 +310,10 @@ define([
|
|||
lock: [_set.slideDeleted, _set.noSlides, _set.noGraphic, _set.noAnimation, _set.noAnimationDuration, _set.timingLock],
|
||||
dataHint: '1',
|
||||
dataHintDirection: 'top',
|
||||
dataHintOffset: 'small'
|
||||
dataHintOffset: 'small',
|
||||
updateFormControl: function(record) {
|
||||
record && this.setRawValue(record.get('value') + ' ' + me.txtSec);
|
||||
}
|
||||
});
|
||||
this.lockedControls.push(this.cmbDuration);
|
||||
|
||||
|
|
Loading…
Reference in a new issue