[PE][SSE] Fix list settings
This commit is contained in:
parent
80c33dfcf7
commit
3857e2cc6a
|
@ -103,6 +103,22 @@ define([
|
||||||
$window = this.getChild();
|
$window = this.getChild();
|
||||||
$window.find('.dlg-btn').on('click', _.bind(this.onBtnClick, this));
|
$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({
|
this.spnSize = new Common.UI.MetricSpinner({
|
||||||
el : $window.find('#id-dlg-list-size'),
|
el : $window.find('#id-dlg-list-size'),
|
||||||
step : 1,
|
step : 1,
|
||||||
|
@ -138,22 +154,6 @@ define([
|
||||||
this.btnColor.render($window.find('#id-dlg-list-color'));
|
this.btnColor.render($window.find('#id-dlg-list-color'));
|
||||||
$('#id-dlg-list-color-new').on('click', _.bind(this.addNewColor, this, this.colors));
|
$('#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({
|
this.spnStart = new Common.UI.MetricSpinner({
|
||||||
el : $window.find('#id-dlg-list-start'),
|
el : $window.find('#id-dlg-list-start'),
|
||||||
step : 1,
|
step : 1,
|
||||||
|
|
Loading…
Reference in a new issue