mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 07:31:55 +08:00
Fix apply settings from dialog
This commit is contained in:
@ -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);
|
||||
|
||||
@ -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') {
|
||||
|
||||
@ -206,6 +206,11 @@ define([
|
||||
return true;
|
||||
},
|
||||
|
||||
onPrimary: function() {
|
||||
this._handleInput('ok');
|
||||
return false;
|
||||
},
|
||||
|
||||
_handleInput: function(state) {
|
||||
if (this.options.handler) {
|
||||
if (state == 'ok') {
|
||||
|
||||
Reference in New Issue
Block a user