Commit 98c04632 authored by Julia Radzhabova's avatar Julia Radzhabova

[DE] Refactoring + disable "insert page number to current position" when paragraph is disabled.

parent 6ea59501
...@@ -414,8 +414,7 @@ define([ ...@@ -414,8 +414,7 @@ define([
}, },
setDisabled: function(disabled) { setDisabled: function(disabled) {
if (this.rendered && if (this.rendered && this.disabled != disabled) {
this.disabled != disabled) {
var el = this.cmpEl, var el = this.cmpEl,
isGroup = el.hasClass('btn-group'); isGroup = el.hasClass('btn-group');
...@@ -490,9 +489,9 @@ define([ ...@@ -490,9 +489,9 @@ define([
} }
} }
} }
} },
, setMenu: function (m) { setMenu: function (m) {
if (m && _.isObject(m) && _.isFunction(m.render)){ if (m && _.isObject(m) && _.isFunction(m.render)){
this.menu = m; this.menu = m;
this.menu.render(this.cmpEl); this.menu.render(this.cmpEl);
......
...@@ -85,8 +85,8 @@ define([ ...@@ -85,8 +85,8 @@ define([
initialize : function(options) { initialize : function(options) {
Common.UI.ComboBox.prototype.initialize.call(this, _.extend(options, { Common.UI.ComboBox.prototype.initialize.call(this, _.extend(options, {
displayField: 'name' displayField: 'name',
, scroller: { scroller: {
alwaysVisibleY: true, alwaysVisibleY: true,
onChange: this.updateVisibleFontsTiles.bind(this) onChange: this.updateVisibleFontsTiles.bind(this)
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment