From 59f795f8663830a7a1920dbd0b478935765e24b3 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 16 Apr 2021 02:03:44 +0300 Subject: [PATCH] Refactoring --- .../main/app/view/TableToTextDialog.js | 18 ++++-------------- .../main/app/view/TextToTableDialog.js | 2 +- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/apps/documenteditor/main/app/view/TableToTextDialog.js b/apps/documenteditor/main/app/view/TableToTextDialog.js index 9d8aedc8f..0cc4e2ca3 100644 --- a/apps/documenteditor/main/app/view/TableToTextDialog.js +++ b/apps/documenteditor/main/app/view/TableToTextDialog.js @@ -80,8 +80,7 @@ define([ render: function() { Common.UI.Window.prototype.render.call(this); - var $window = this.getChild(), - me = this; + var $window = this.getChild(); this.rbPara = new Common.UI.RadioBox({ el: $window.find('#id-table-text-radio-para'), @@ -118,16 +117,8 @@ define([ maxLength: 1, validateOnChange: true, validateOnBlur: false, - value: '-' - }).on ('changing', function(input, newValue) { - if (me.props && newValue) { - me.props.put_SeparatorType(3, true); - var size = me.props.put_Separator(newValue.charCodeAt(0), true); - if (size) { - me.spnColumns.setValue(size.cols, true); - me.spnRows.setValue(size.rows, true); - } - } + value: '-', + disabled: true }); this.chNested = new Common.UI.CheckBox({ @@ -135,8 +126,7 @@ define([ labelText: this.textNested, value: true, disabled: true - }).on('change', _.bind(function(field, newValue, oldValue, eOpts){ - }, this)); + }); this.getChild().find('.dlg-btn').on('click', _.bind(this.onBtnClick, this)); }, diff --git a/apps/documenteditor/main/app/view/TextToTableDialog.js b/apps/documenteditor/main/app/view/TextToTableDialog.js index 1062a2f98..823fe422f 100644 --- a/apps/documenteditor/main/app/view/TextToTableDialog.js +++ b/apps/documenteditor/main/app/view/TextToTableDialog.js @@ -182,7 +182,7 @@ define([ this.spnWidth = new Common.UI.MetricSpinner({ el: $window.find('#id-text-table-spn-fixed'), step: 0.1, - width: 64, + width: 80, defaultUnit : 'cm', value: 'Auto', autoText : this.txtAutoText,