Update bootstrap (fix dropdown menu)
This commit is contained in:
parent
ca57c48a2b
commit
25f232e839
|
@ -82,7 +82,7 @@ define([
|
|||
'<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" data-reference="parent"><span class="caret img-commonctrl"></span></button>',
|
||||
'<ul class="dropdown-menu <%= menuCls %>" style="<%= menuStyle %>" role="menu">',
|
||||
'<% _.each(items, function(item) { %>',
|
||||
'<li id="<%= item.id %>" class="dropdown-item" data-value="<%= item.value %>"><a tabindex="-1" type="menuitem">',
|
||||
'<li id="<%= item.id %>" data-value="<%= item.value %>"><a class="dropdown-item" tabindex="-1" type="menuitem">',
|
||||
'<span><%= item.displayValue %></span>',
|
||||
'<% if (item.offsety!==undefined) { %>',
|
||||
'<img src="data:image/gif;base64,R0lGODlhAQABAID/AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" align="right" style="background-position: 0 -<%= item.offsety %>px;">',
|
||||
|
|
|
@ -265,6 +265,7 @@ define([
|
|||
|
||||
_.delay(function(){
|
||||
me.cmpEl.addClass('show');
|
||||
me.cmpEl.find('.dropdown-menu').addClass('show');
|
||||
}, delay || 0);
|
||||
},
|
||||
|
||||
|
|
|
@ -381,8 +381,8 @@ define([
|
|||
|
||||
onInsertItem: function(item) {
|
||||
$(this.el).find('ul').prepend(_.template([
|
||||
'<li id="<%= item.id %>" class="dropdown-item">',
|
||||
'<a class="font-item" tabindex="-1" type="menuitem" style="height:<%=scope.getListItemHeight()%>px;"></a>',
|
||||
'<li id="<%= item.id %>">',
|
||||
'<a class="font-item dropdown-item" tabindex="-1" type="menuitem" style="height:<%=scope.getListItemHeight()%>px;"></a>',
|
||||
'</li>'
|
||||
].join(''))({
|
||||
item: item.attributes,
|
||||
|
|
|
@ -113,7 +113,7 @@ define([
|
|||
|
||||
close: function(suppressevent) {
|
||||
var $window = this.getChild();
|
||||
if (!$window.find('.combobox.open').length) {
|
||||
if (!$window.find('.combobox.show').length) {
|
||||
Common.UI.Window.prototype.close.call(this, arguments);
|
||||
}
|
||||
},
|
||||
|
|
|
@ -170,7 +170,7 @@
|
|||
display: inline-flex;
|
||||
flex-direction: column;
|
||||
|
||||
&.open,
|
||||
&.show,
|
||||
&.over {
|
||||
&.split {
|
||||
> .inner-box-icon {
|
||||
|
@ -434,7 +434,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
&.open {
|
||||
&.show {
|
||||
> .btn-toolbar {
|
||||
//color: lighten(@gray-lighter, 10%);
|
||||
|
||||
|
@ -502,7 +502,7 @@
|
|||
&.split {
|
||||
|
||||
&.over:not(.disabled),
|
||||
&.open {
|
||||
&.show {
|
||||
box-shadow: inset 0 0 0 1px @color-gray;
|
||||
|
||||
button:not(.active):not(.btn-text-split-default) {
|
||||
|
@ -525,7 +525,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
&.open {
|
||||
&.show {
|
||||
> button:not(.active) {
|
||||
&:last-of-type {
|
||||
background-color: @color-dark;
|
||||
|
@ -606,6 +606,10 @@
|
|||
.box-shadow(none);
|
||||
background-color: transparent;
|
||||
|
||||
&:focus {
|
||||
box-shadow: inset 0 0 0 1px @gray;
|
||||
}
|
||||
|
||||
&.bg-white {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
|
|
@ -806,13 +806,13 @@ define([
|
|||
}
|
||||
|
||||
var statusbar = DE.getController('Statusbar');
|
||||
var menu_opened = statusbar.statusbar.$el.find('.open > [data-toggle="dropdown"]');
|
||||
var menu_opened = statusbar.statusbar.$el.find('.show > [data-toggle="dropdown"]');
|
||||
if (menu_opened.length) {
|
||||
$.fn.dropdown.Constructor.prototype.keydown.call(menu_opened[0], e);
|
||||
return false;
|
||||
}
|
||||
if (this.mode.canPlugins && this.leftMenu.panelPlugins) {
|
||||
menu_opened = this.leftMenu.panelPlugins.$el.find('#menu-plugin-container.open > [data-toggle="dropdown"]');
|
||||
menu_opened = this.leftMenu.panelPlugins.$el.find('#menu-plugin-container.show > [data-toggle="dropdown"]');
|
||||
if (menu_opened.length) {
|
||||
$.fn.dropdown.Constructor.prototype.keydown.call(menu_opened[0], e);
|
||||
return false;
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
<button id="id-right-menu-shape" class="btn btn-category arrow-left" content-target="id-shape-settings"><i class="icon toolbar__icon btn-menu-shape"> </i></button>
|
||||
<button id="id-right-menu-chart" class="btn btn-category arrow-left" content-target="id-chart-settings"><i class="icon toolbar__icon btn-menu-chart"> </i></button>
|
||||
<button id="id-right-menu-textart" class="btn btn-category arrow-left" content-target="id-textart-settings"><i class="icon toolbar__icon btn-menu-textart"> </i></button>
|
||||
<button id="id-right-menu-mail-merge" class="btn btn-category arrow-left hidden" content-target="id-mail-merge-settings"><i class="icon toolbar__icon btn-mailmerge"> </i></button>
|
||||
<button id="id-right-menu-signature" class="btn btn-category arrow-left hidden" content-target="id-signature-settings"><i class="icon toolbar__icon btn-menu-signature"> </i></button>
|
||||
<button id="id-right-menu-mail-merge" class="btn btn-category arrow-left d-none" content-target="id-mail-merge-settings"><i class="icon toolbar__icon btn-mailmerge"> </i></button>
|
||||
<button id="id-right-menu-signature" class="btn btn-category arrow-left d-none" content-target="id-signature-settings"><i class="icon toolbar__icon btn-menu-signature"> </i></button>
|
||||
</div>
|
||||
</div>
|
|
@ -233,7 +233,7 @@ define([
|
|||
style: 'margin-top:-5px;',
|
||||
restoreHeight: 285,
|
||||
itemTemplate: _.template([
|
||||
'<a id="<%= id %>" tabindex="-1" type="menuitem" style="padding-left: 28px !important;" langval="<%= value.value %>" class="<% if (checked) { %> checked <% } %>">',
|
||||
'<a id="<%= id %>" class="dropdown-item" tabindex="-1" type="menuitem" style="padding-left: 28px !important;" langval="<%= value.value %>" class="<% if (checked) { %> checked <% } %>">',
|
||||
'<i class="icon <% if (spellcheck) { %> toolbar__icon btn-ic-docspell spellcheck-lang <% } %>"></i>',
|
||||
'<%= caption %>',
|
||||
'</a>'
|
||||
|
|
|
@ -166,13 +166,13 @@
|
|||
|
||||
.btn-edit-table {background-position: 0 0;}
|
||||
button.over .btn-edit-table {background-position: -28px 0;}
|
||||
.btn-group.open .btn-edit-table,
|
||||
.btn-group.show .btn-edit-table,
|
||||
button.active:not(.disabled) .btn-edit-table,
|
||||
button:active:not(.disabled) .btn-edit-table {background-position: -56px 0;}
|
||||
|
||||
.btn-change-shape {background-position: 0 -16px;}
|
||||
button.over .btn-change-shape {background-position: -28px -16px;}
|
||||
.btn-group.open .btn-change-shape,
|
||||
.btn-group.show .btn-change-shape,
|
||||
button.active:not(.disabled) .btn-change-shape,
|
||||
button:active:not(.disabled) .btn-change-shape {background-position: -56px -16px;}
|
||||
|
||||
|
|
|
@ -78,6 +78,12 @@
|
|||
color: #000;
|
||||
margin-left: 6px;
|
||||
|
||||
.caret {
|
||||
display: inline-block;
|
||||
margin-left: 2px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.caret.up {
|
||||
background-position: @arrow-up-small-offset-x @arrow-up-small-offset-y;
|
||||
|
||||
|
|
|
@ -26,6 +26,6 @@
|
|||
<button id="id-right-menu-table" class="btn btn-category arrow-left" content-target="id-table-settings"><i class="icon toolbar__icon btn-menu-table"> </i></button>
|
||||
<button id="id-right-menu-chart" class="btn btn-category arrow-left" content-target="id-chart-settings"><i class="icon toolbar__icon btn-menu-chart"> </i></button>
|
||||
<button id="id-right-menu-textart" class="btn btn-category arrow-left" content-target="id-textart-settings"><i class="icon toolbar__icon btn-menu-textart"> </i></button>
|
||||
<button id="id-right-menu-signature" class="btn btn-category arrow-left hidden" content-target="id-signature-settings"><i class="icon toolbar__icon btn-menu-signature"> </i></button>
|
||||
<button id="id-right-menu-signature" class="btn btn-category arrow-left d-none" content-target="id-signature-settings"><i class="icon toolbar__icon btn-menu-signature"> </i></button>
|
||||
</div>
|
||||
</div>
|
|
@ -32,6 +32,6 @@
|
|||
<button id="id-right-menu-textart" class="btn btn-category arrow-left" content-target="id-textart-settings"><i class="icon toolbar__icon btn-menu-textart"> </i></button>
|
||||
<button id="id-right-menu-pivot" class="btn btn-category arrow-left" content-target="id-pivot-settings"><i class="icon toolbar__icon btn-pivot-sum"> </i></button>
|
||||
<button id="id-right-menu-slicer" class="btn btn-category arrow-left" content-target="id-slicer-settings"><i class="icon toolbar__icon btn-slicer"> </i></button>
|
||||
<button id="id-right-menu-signature" class="btn btn-category arrow-left hidden" content-target="id-signature-settings"><i class="icon toolbar__icon btn-menu-signature"> </i></button>
|
||||
<button id="id-right-menu-signature" class="btn btn-category arrow-left d-none" content-target="id-signature-settings"><i class="icon toolbar__icon btn-menu-signature"> </i></button>
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in a new issue