commit
bfec2495b8
|
@ -521,7 +521,9 @@ define([
|
||||||
|
|
||||||
onCmbDelimiterSelect: function(combo, record){
|
onCmbDelimiterSelect: function(combo, record){
|
||||||
this.inputDelimiter.setVisible(record.value == -1);
|
this.inputDelimiter.setVisible(record.value == -1);
|
||||||
(record.value == -1) && this.inputDelimiter.cmpEl.find('input').focus();
|
var me = this;
|
||||||
|
if (record.value == -1)
|
||||||
|
setTimeout(function(){me.inputDelimiter.focus();}, 10);
|
||||||
if (this.preview)
|
if (this.preview)
|
||||||
this.updatePreview();
|
this.updatePreview();
|
||||||
},
|
},
|
||||||
|
|
|
@ -174,7 +174,7 @@ define([
|
||||||
handler : function(result, value) {
|
handler : function(result, value) {
|
||||||
if (result == 'ok') {
|
if (result == 'ok') {
|
||||||
if (me.api) {
|
if (me.api) {
|
||||||
me.addNewEffect(value.activeEffect, value.activeGroupValue, value.activeGroup, replace);
|
me.addNewEffect(value.activeEffect, value.activeGroupValue, value.activeGroup, replace, undefined, !Common.Utils.InternalSettings.get("pe-animation-no-preview"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -187,11 +187,11 @@ define([
|
||||||
this.addNewEffect(type, group, record.get('group'), false);
|
this.addNewEffect(type, group, record.get('group'), false);
|
||||||
},
|
},
|
||||||
|
|
||||||
addNewEffect: function (type, group, groupName, replace, parametr) {
|
addNewEffect: function (type, group, groupName, replace, parametr, preview) {
|
||||||
if (this._state.Effect == type && this._state.EffectGroup == group && replace)
|
if (this._state.Effect == type && this._state.EffectGroup == group && replace)
|
||||||
parametr = this._state.EffectOption;
|
parametr = this._state.EffectOption;
|
||||||
var parameter = this.view.setMenuParameters(type, groupName, parametr);
|
var parameter = this.view.setMenuParameters(type, groupName, parametr);
|
||||||
this.api.asc_AddAnimation(group, type, (parameter != undefined)?parameter:0, replace, !Common.Utils.InternalSettings.get("pe-animation-no-preview"));
|
this.api.asc_AddAnimation(group, type, (parameter != undefined)?parameter:0, replace, preview);
|
||||||
},
|
},
|
||||||
|
|
||||||
onDurationChange: function(before,combo, record, e) {
|
onDurationChange: function(before,combo, record, e) {
|
||||||
|
|
Loading…
Reference in a new issue