diff --git a/apps/common/main/lib/view/ListSettingsDialog.js b/apps/common/main/lib/view/ListSettingsDialog.js index b18fd2537..de61663fb 100644 --- a/apps/common/main/lib/view/ListSettingsDialog.js +++ b/apps/common/main/lib/view/ListSettingsDialog.js @@ -103,6 +103,22 @@ define([ $window = this.getChild(); $window.find('.dlg-btn').on('click', _.bind(this.onBtnClick, this)); + this.menuAddAlign = function(menuRoot, left, top) { + var self = this; + if (!$window.hasClass('notransform')) { + $window.addClass('notransform'); + menuRoot.addClass('hidden'); + setTimeout(function() { + menuRoot.removeClass('hidden'); + menuRoot.css({left: left, top: top}); + self.options.additionalAlign = null; + }, 300); + } else { + menuRoot.css({left: left, top: top}); + self.options.additionalAlign = null; + } + }; + this.spnSize = new Common.UI.MetricSpinner({ el : $window.find('#id-dlg-list-size'), step : 1, @@ -138,22 +154,6 @@ define([ this.btnColor.render($window.find('#id-dlg-list-color')); $('#id-dlg-list-color-new').on('click', _.bind(this.addNewColor, this, this.colors)); - this.menuAddAlign = function(menuRoot, left, top) { - var self = this; - if (!$window.hasClass('notransform')) { - $window.addClass('notransform'); - menuRoot.addClass('hidden'); - setTimeout(function() { - menuRoot.removeClass('hidden'); - menuRoot.css({left: left, top: top}); - self.options.additionalAlign = null; - }, 300); - } else { - menuRoot.css({left: left, top: top}); - self.options.additionalAlign = null; - } - }; - this.spnStart = new Common.UI.MetricSpinner({ el : $window.find('#id-dlg-list-start'), step : 1,