[DE] Fix style for disabled item Add new style
This commit is contained in:
parent
03069417fb
commit
75fa8c5c10
|
@ -137,6 +137,7 @@ 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;
|
||||
|
||||
|
@ -216,6 +217,9 @@ define([
|
|||
});
|
||||
}
|
||||
|
||||
if (this.liCls)
|
||||
el.addClass(this.liCls);
|
||||
|
||||
if (this.disabled)
|
||||
el.toggleClass('disabled', this.disabled);
|
||||
|
||||
|
|
|
@ -357,8 +357,6 @@ define([
|
|||
Common.Gateway.on('insertimage', _.bind(this.insertImage, this));
|
||||
Common.Gateway.on('setmailmergerecipients', _.bind(this.setMailMergeRecipients, this));
|
||||
$('#id-toolbar-menu-new-control-color').on('click', _.bind(this.onNewControlsColor, this));
|
||||
|
||||
// $('#id-save-style-plus, #id-save-style-link', toolbar.$el).on('click', this.onMenuSaveStyle.bind(this));
|
||||
toolbar.listStylesAdditionalMenuItem.on('click', this.onMenuSaveStyle.bind(this));
|
||||
|
||||
this.onSetupCopyStyleButton();
|
||||
|
|
|
@ -1286,14 +1286,9 @@ define([
|
|||
this.paragraphControls.push(this.cmbFontName);
|
||||
|
||||
this.listStylesAdditionalMenuItem = new Common.UI.MenuItem({
|
||||
cls: 'save-style-container',
|
||||
liCls: 'save-style-container',
|
||||
iconCls: 'menu__icon btn-zoomup',
|
||||
caption: me.textStyleMenuNew
|
||||
// template: _.template(
|
||||
// '<div id="id-save-style-container" class = "save-style-container">' +
|
||||
// '<span id="id-save-style-plus" class="plus img-commonctrl" ></span>' +
|
||||
// '<label id="id-save-style-link" class="save-style-link" >' + me.textStyleMenuNew + '</label>' +
|
||||
// '</div>')
|
||||
});
|
||||
|
||||
this.listStyles = new Common.UI.ComboDataView({
|
||||
|
|
|
@ -152,36 +152,13 @@
|
|||
}
|
||||
|
||||
.save-style-container {
|
||||
//cursor: default;
|
||||
//position: relative;
|
||||
//padding: 14px 11px;
|
||||
padding: 14px 20px !important;
|
||||
border-left: @scaled-one-px-value-ie solid @border-regular-control-ie;
|
||||
border-left: @scaled-one-px-value solid @border-regular-control;
|
||||
border-top: @scaled-one-px-value-ie solid @border-regular-control-ie;
|
||||
border-top: @scaled-one-px-value solid @border-regular-control;
|
||||
}
|
||||
|
||||
.save-style-link {
|
||||
border-bottom: @scaled-one-px-value-ie dotted @text-secondary-ie;
|
||||
border-bottom: @scaled-one-px-value dotted @text-secondary;
|
||||
cursor: pointer;
|
||||
margin-left: 22px;
|
||||
}
|
||||
|
||||
.plus {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
cursor: pointer;
|
||||
position: absolute;
|
||||
background-position: @plus-offset-x @plus-offset-y;
|
||||
}
|
||||
|
||||
.dropdown-menu > .disabled {
|
||||
.plus, .save-style-link {
|
||||
cursor: default;
|
||||
color: @dropdown-link-disabled-color;
|
||||
background-position: @plus-offset-x @plus-offset-y - 16;
|
||||
a {
|
||||
padding: 14px 20px !important;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue