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([
},
setDisabled: function(disabled) {
if (this.rendered &&
this.disabled != disabled) {
if (this.rendered && this.disabled != disabled) {
var el = this.cmpEl,
isGroup = el.hasClass('btn-group');
......@@ -490,9 +489,9 @@ define([
}
}
}
}
},
, setMenu: function (m) {
setMenu: function (m) {
if (m && _.isObject(m) && _.isFunction(m.render)){
this.menu = m;
this.menu.render(this.cmpEl);
......
......@@ -85,8 +85,8 @@ define([
initialize : function(options) {
Common.UI.ComboBox.prototype.initialize.call(this, _.extend(options, {
displayField: 'name'
, scroller: {
displayField: 'name',
scroller: {
alwaysVisibleY: true,
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