[DE] Page thumbnails: fix closing dropdown menu when click on slider item
This commit is contained in:
parent
cbd88e8284
commit
6da800f8c0
|
@ -78,14 +78,22 @@ define([
|
||||||
});
|
});
|
||||||
this.buttonClose.on('click', _.bind(this.onClickClosePanel, this));
|
this.buttonClose.on('click', _.bind(this.onClickClosePanel, this));
|
||||||
|
|
||||||
var sizeSettingTemplate = _.template('<div id="thumbnails-size">' +
|
this.mnuSizeSetting = new Common.UI.MenuItem({
|
||||||
'<label><%= caption %></label>' +
|
template: _.template([
|
||||||
'<div class="thumbnails-sld-box">' +
|
'<div id="thumbnails-size"',
|
||||||
'<span class="menu-item-icon menu__icon thumbnail-small"></span>' +
|
'<% if(!_.isUndefined(options.stopPropagation)) { %>',
|
||||||
'<div id="sld-thumbnails-size"></div>' +
|
'data-stopPropagation="true"',
|
||||||
'<span class="menu-item-icon menu__icon thumbnail-big"></span>' +
|
'<% } %>', '>',
|
||||||
'</div>',
|
'<label>' + this.textThumbnailsSize + '</label>',
|
||||||
'</div>');
|
'<div class="thumbnails-sld-box">',
|
||||||
|
'<span class="menu-item-icon menu__icon thumbnail-small"></span>',
|
||||||
|
'<div id="sld-thumbnails-size"></div>',
|
||||||
|
'<span class="menu-item-icon menu__icon thumbnail-big"></span>',
|
||||||
|
'</div>',
|
||||||
|
'</div>'
|
||||||
|
].join('')),
|
||||||
|
stopPropagation: true
|
||||||
|
});
|
||||||
|
|
||||||
this.buttonSettings = new Common.UI.Button({
|
this.buttonSettings = new Common.UI.Button({
|
||||||
parentEl: $('#thumbnails-btn-settings', this.$el),
|
parentEl: $('#thumbnails-btn-settings', this.$el),
|
||||||
|
@ -96,11 +104,7 @@ define([
|
||||||
menuAlign: 'tr-br',
|
menuAlign: 'tr-br',
|
||||||
style: 'min-width: 198px;',
|
style: 'min-width: 198px;',
|
||||||
items: [
|
items: [
|
||||||
{
|
this.mnuSizeSetting,
|
||||||
caption: this.textThumbnailsSize,
|
|
||||||
template: sizeSettingTemplate,
|
|
||||||
toggleGroup: 'menuThumbnails'
|
|
||||||
},
|
|
||||||
{caption: '--'},
|
{caption: '--'},
|
||||||
{
|
{
|
||||||
caption: this.textHighlightVisiblePart,
|
caption: this.textHighlightVisiblePart,
|
||||||
|
|
Loading…
Reference in a new issue