Refactoring dialogs

This commit is contained in:
Julia Radzhabova 2021-09-24 00:37:21 +03:00
parent 9b0fba8ba6
commit 9e891c485b
7 changed files with 7 additions and 7 deletions

View file

@ -95,7 +95,7 @@ define([
labelText: this.textDontShow labelText: this.textDontShow
}); });
this.getChild().find('.btn').on('click', _.bind(this.onBtnClick, this)); this.getChild().find('.dlg-btn').on('click', _.bind(this.onBtnClick, this));
this.autoSize(); this.autoSize();
}, },

View file

@ -85,7 +85,7 @@ define([
me.inputLabel.setValue(this.options.value || '' ); me.inputLabel.setValue(this.options.value || '' );
var $window = this.getChild(); var $window = this.getChild();
$window.find('.btn').on('click', _.bind(this.onBtnClick, this)); $window.find('.dlg-btn').on('click', _.bind(this.onBtnClick, this));
}, },
show: function() { show: function() {

View file

@ -83,7 +83,7 @@ define([
}); });
var $window = this.getChild(); var $window = this.getChild();
$window.find('.btn').on('click', _.bind(this.onBtnClick, this)); $window.find('.dlg-btn').on('click', _.bind(this.onBtnClick, this));
}, },
show: function() { show: function() {

View file

@ -91,7 +91,7 @@ define([
}); });
var $window = this.getChild(); var $window = this.getChild();
$window.find('.btn').on('click', _.bind(this.onBtnClick, this)); $window.find('.dlg-btn').on('click', _.bind(this.onBtnClick, this));
}, },
show: function() { show: function() {

View file

@ -84,7 +84,7 @@ define([
}); });
var $window = this.getChild(); var $window = this.getChild();
$window.find('.btn').on('click', _.bind(this.onBtnClick, this)); $window.find('.dlg-btn').on('click', _.bind(this.onBtnClick, this));
}, },
show: function() { show: function() {

View file

@ -122,7 +122,7 @@ define([
}); });
var $window = this.getChild(); var $window = this.getChild();
$window.find('.btn').on('click', _.bind(this.onBtnClick, this)); $window.find('.dlg-btn').on('click', _.bind(this.onBtnClick, this));
}, },
getFocusedComponents: function() { getFocusedComponents: function() {

View file

@ -1022,7 +1022,7 @@ define([
$border.removeClass('top'); $border.removeClass('top');
this.$window.find('.btn').on('click', _.bind(this.onBtnClick, this)); this.$window.find('.dlg-btn').on('click', _.bind(this.onBtnClick, this));
this.btnOk = new Common.UI.Button({ this.btnOk = new Common.UI.Button({
cls: 'btn normal dlg-btn primary', cls: 'btn normal dlg-btn primary',