Refactoring dialogs
This commit is contained in:
parent
9b0fba8ba6
commit
9e891c485b
|
@ -95,7 +95,7 @@ define([
|
|||
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();
|
||||
},
|
||||
|
||||
|
|
|
@ -85,7 +85,7 @@ define([
|
|||
me.inputLabel.setValue(this.options.value || '' );
|
||||
|
||||
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() {
|
||||
|
|
|
@ -83,7 +83,7 @@ define([
|
|||
});
|
||||
|
||||
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() {
|
||||
|
|
|
@ -91,7 +91,7 @@ define([
|
|||
});
|
||||
|
||||
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() {
|
||||
|
|
|
@ -84,7 +84,7 @@ define([
|
|||
});
|
||||
|
||||
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() {
|
||||
|
|
|
@ -122,7 +122,7 @@ define([
|
|||
});
|
||||
|
||||
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() {
|
||||
|
|
|
@ -1022,7 +1022,7 @@ define([
|
|||
$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({
|
||||
cls: 'btn normal dlg-btn primary',
|
||||
|
|
Loading…
Reference in a new issue