Fix MenuItem cls parameter
This commit is contained in:
parent
75fa8c5c10
commit
e5a35881f8
|
@ -111,7 +111,7 @@ define([
|
|||
tagName : 'li',
|
||||
|
||||
template: _.template([
|
||||
'<a id="<%= id %>" style="<%= style %>" class="<%= options.cls %>" <% if(options.canFocused) { %> tabindex="-1" type="menuitem" <% }; if(!_.isUndefined(options.stopPropagation)) { %> data-stopPropagation="true" <% }; if(!_.isUndefined(options.dataHint)) { %> data-hint="<%= options.dataHint %>" <% }; if(!_.isUndefined(options.dataHintDirection)) { %> data-hint-direction="<%= options.dataHintDirection %>" <% }; if(!_.isUndefined(options.dataHintOffset)) { %> data-hint-offset="<%= options.dataHintOffset %>" <% }; %> >',
|
||||
'<a id="<%= id %>" style="<%= style %>" <% if(options.canFocused) { %> tabindex="-1" type="menuitem" <% }; if(!_.isUndefined(options.stopPropagation)) { %> data-stopPropagation="true" <% }; if(!_.isUndefined(options.dataHint)) { %> data-hint="<%= options.dataHint %>" <% }; if(!_.isUndefined(options.dataHintDirection)) { %> data-hint-direction="<%= options.dataHintDirection %>" <% }; if(!_.isUndefined(options.dataHintOffset)) { %> data-hint-offset="<%= options.dataHintOffset %>" <% }; %> >',
|
||||
'<% if (!_.isEmpty(iconCls)) { %>',
|
||||
'<span class="menu-item-icon <%= iconCls %>"></span>',
|
||||
'<% } %>',
|
||||
|
@ -137,7 +137,6 @@ define([
|
|||
this.toggleGroup = me.options.toggleGroup;
|
||||
this.template = me.options.template || this.template;
|
||||
this.iconCls = me.options.iconCls;
|
||||
this.liCls = me.options.liCls;
|
||||
this.hint = me.options.hint;
|
||||
this.rendered = false;
|
||||
|
||||
|
@ -217,8 +216,8 @@ define([
|
|||
});
|
||||
}
|
||||
|
||||
if (this.liCls)
|
||||
el.addClass(this.liCls);
|
||||
if (this.cls)
|
||||
el.addClass(this.cls);
|
||||
|
||||
if (this.disabled)
|
||||
el.toggleClass('disabled', this.disabled);
|
||||
|
|
|
@ -1286,7 +1286,7 @@ define([
|
|||
this.paragraphControls.push(this.cmbFontName);
|
||||
|
||||
this.listStylesAdditionalMenuItem = new Common.UI.MenuItem({
|
||||
liCls: 'save-style-container',
|
||||
cls: 'save-style-container',
|
||||
iconCls: 'menu__icon btn-zoomup',
|
||||
caption: me.textStyleMenuNew
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue