Fix apply settings from dialog

This commit is contained in:
Julia Radzhabova
2023-10-31 13:12:55 +03:00
parent a8672a7f0f
commit 5ed4c9c8eb
3 changed files with 16 additions and 0 deletions

View File

@ -119,6 +119,7 @@ define([
tabindex: 1
});
this.lstEffectList.on('item:select', _.bind(this.onEffectListItem,this));
this.lstEffectList.on('entervalue', _.bind(this.onPrimary, this));
// this.chPreview = new Common.UI.CheckBox({
// el : $('#animation-setpreview'),
@ -192,6 +193,11 @@ define([
this._handleInput(event.currentTarget.attributes['result'].value);
},
onPrimary: function() {
this._handleInput('ok');
return false;
},
_handleInput: function(state) {
if (this.options.handler) {
this.options.handler.call(this, state, this._state);

View File

@ -181,6 +181,11 @@ define([
return this.spnTop;
},
onPrimary: function() {
this._handleInput('ok');
return false;
},
_handleInput: function(state) {
if (this.options.handler) {
if (state == 'ok') {

View File

@ -206,6 +206,11 @@ define([
return true;
},
onPrimary: function() {
this._handleInput('ok');
return false;
},
_handleInput: function(state) {
if (this.options.handler) {
if (state == 'ok') {