[DE] fixed radiobox in bookmark settings dialog

This commit is contained in:
Maxim Kadushkin 2021-10-05 22:00:07 +03:00
parent eff524bcbf
commit 69e72fce51
3 changed files with 15 additions and 10 deletions

View file

@ -101,7 +101,6 @@ define([
this.setCaption(this.options.labelText);
// handle events
this.$radio.on('click', _.bind(this.onItemCheck, this));
},
render: function () {
@ -118,12 +117,12 @@ define([
this.$radio = el.find('input[type=radio]');
this.$label = el.find('div.radiobox');
this.$span = this.$label.find('span');
this.$label.on('keydown', this.onKeyDown.bind(this));
this.$label.find('svg, span').on('click', function(e) {
if ( !this.disabled )
this.setValue(true);
}.bind(this));
this.$label.on({
'keydown': this.onKeyDown.bind(this),
'click': function(e){
if ( !this.disabled )
this.setValue(true);
}.bind(this),});
this.rendered = true;

View file

@ -79,8 +79,8 @@ define([
'<tr>',
'<td class="padding-extra-small">',
'<label class="header" style="margin-right: 10px;">', me.textSort,'</label>',
'<div id="bookmarks-radio-name" style="display: inline-block; margin-right: 10px;"></div>',
'<div id="bookmarks-radio-location" style="display: inline-block;"></div>',
'<div id="bookmarks-radio-name"></div>',
'<div id="bookmarks-radio-location"></div>',
'</td>',
'</tr>',
'<tr>',

View file

@ -85,7 +85,13 @@
}
}
#id-text-table-spn-fixed {
#bookmarks-radio-name {
display: inline-block;
margin-right: 10px;
vertical-align: middle;
}
#id-text-table-spn-fixed, #bookmarks-radio-location {
display: inline-block;
vertical-align: middle;
}