From 9e891c485b92157cd39e04a0a17a7252ad9a35ed Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 24 Sep 2021 00:37:21 +0300 Subject: [PATCH] Refactoring dialogs --- apps/common/main/lib/view/CopyWarningDialog.js | 2 +- apps/common/main/lib/view/EditNameDialog.js | 2 +- apps/common/main/lib/view/ImageFromUrlDialog.js | 2 +- apps/common/main/lib/view/UserNameDialog.js | 2 +- apps/documenteditor/main/app/view/AddNewCaptionLabelDialog.js | 2 +- apps/documenteditor/main/app/view/EditListItemDialog.js | 2 +- apps/spreadsheeteditor/main/app/view/AutoFilterDialog.js | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/common/main/lib/view/CopyWarningDialog.js b/apps/common/main/lib/view/CopyWarningDialog.js index a8b080356..ead1126b3 100644 --- a/apps/common/main/lib/view/CopyWarningDialog.js +++ b/apps/common/main/lib/view/CopyWarningDialog.js @@ -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(); }, diff --git a/apps/common/main/lib/view/EditNameDialog.js b/apps/common/main/lib/view/EditNameDialog.js index aa68e7e2d..4184b8225 100644 --- a/apps/common/main/lib/view/EditNameDialog.js +++ b/apps/common/main/lib/view/EditNameDialog.js @@ -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() { diff --git a/apps/common/main/lib/view/ImageFromUrlDialog.js b/apps/common/main/lib/view/ImageFromUrlDialog.js index 0287417f0..5e2fd9d91 100644 --- a/apps/common/main/lib/view/ImageFromUrlDialog.js +++ b/apps/common/main/lib/view/ImageFromUrlDialog.js @@ -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() { diff --git a/apps/common/main/lib/view/UserNameDialog.js b/apps/common/main/lib/view/UserNameDialog.js index 5076d9bd0..e95cc55c7 100644 --- a/apps/common/main/lib/view/UserNameDialog.js +++ b/apps/common/main/lib/view/UserNameDialog.js @@ -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() { diff --git a/apps/documenteditor/main/app/view/AddNewCaptionLabelDialog.js b/apps/documenteditor/main/app/view/AddNewCaptionLabelDialog.js index 4ca86915e..9be42c8fe 100644 --- a/apps/documenteditor/main/app/view/AddNewCaptionLabelDialog.js +++ b/apps/documenteditor/main/app/view/AddNewCaptionLabelDialog.js @@ -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() { diff --git a/apps/documenteditor/main/app/view/EditListItemDialog.js b/apps/documenteditor/main/app/view/EditListItemDialog.js index 852ce4cc8..bc01606f4 100644 --- a/apps/documenteditor/main/app/view/EditListItemDialog.js +++ b/apps/documenteditor/main/app/view/EditListItemDialog.js @@ -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() { diff --git a/apps/spreadsheeteditor/main/app/view/AutoFilterDialog.js b/apps/spreadsheeteditor/main/app/view/AutoFilterDialog.js index 12d8ff4e2..88381a8a0 100644 --- a/apps/spreadsheeteditor/main/app/view/AutoFilterDialog.js +++ b/apps/spreadsheeteditor/main/app/view/AutoFilterDialog.js @@ -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',