[SSE] Scale Dialog (closing window when click enter)
This commit is contained in:
parent
28d8ad8df7
commit
8c7938565a
|
@ -146,14 +146,22 @@ define([
|
|||
this._setDefaults();
|
||||
},
|
||||
|
||||
onBtnClick: function(event) {
|
||||
var state = event.currentTarget.attributes['result'].value;
|
||||
_handleInput: function(state) {
|
||||
if (this.options.handler) {
|
||||
this.options.handler.call(this, state, (state == 'ok') ? this.getSettings() : undefined);
|
||||
}
|
||||
this.close();
|
||||
},
|
||||
|
||||
onBtnClick: function(event) {
|
||||
this._handleInput(event.currentTarget.attributes['result'].value);
|
||||
},
|
||||
|
||||
onPrimary: function() {
|
||||
this._handleInput('ok');
|
||||
return false;
|
||||
},
|
||||
|
||||
setDisabledScale: function() {
|
||||
if (this._state.height !== 'Auto' || this._state.width !== 'Auto') {
|
||||
this.spnScale.setValue('100 %');
|
||||
|
|
Loading…
Reference in a new issue