Remove unnecessary code
This commit is contained in:
parent
9fe721945d
commit
da5b4c029b
|
@ -31,8 +31,6 @@
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
<a href="#" class="enable" i18n-text="enableStyleLabel" tabindex="0"></a>
|
|
||||||
<a href="#" class="disable" i18n-text="disableStyleLabel" tabindex="0"></a>
|
|
||||||
<a href="#" class="configure" i18n-title="configureStyle" tabindex="0">
|
<a href="#" class="configure" i18n-title="configureStyle" tabindex="0">
|
||||||
<svg class="svg-icon config"><use xlink:href="#svg-icon-config"></use></svg>
|
<svg class="svg-icon config"><use xlink:href="#svg-icon-config"></use></svg>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -283,8 +283,6 @@ function createStyleElement({
|
||||||
config.dataset.sendMessage = JSON.stringify({method: 'openSettings'});
|
config.dataset.sendMessage = JSON.stringify({method: 'openSettings'});
|
||||||
$('use', config).attributes['xlink:href'].nodeValue = '#svg-icon-config-uso';
|
$('use', config).attributes['xlink:href'].nodeValue = '#svg-icon-config-uso';
|
||||||
}
|
}
|
||||||
$('.enable', entry).onclick = handleEvent.toggle;
|
|
||||||
$('.disable', entry).onclick = handleEvent.toggle;
|
|
||||||
$('.delete', entry).onclick = handleEvent.delete;
|
$('.delete', entry).onclick = handleEvent.delete;
|
||||||
$('.configure', entry).onclick = handleEvent.configure;
|
$('.configure', entry).onclick = handleEvent.configure;
|
||||||
|
|
||||||
|
@ -347,10 +345,7 @@ Object.assign(handleEvent, {
|
||||||
toggle(event) {
|
toggle(event) {
|
||||||
// when fired on checkbox, prevent the parent label from seeing the event, see #501
|
// when fired on checkbox, prevent the parent label from seeing the event, see #501
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
API.toggleStyle(
|
API.toggleStyle(handleEvent.getClickedStyleId(event), this.checked);
|
||||||
handleEvent.getClickedStyleId(event),
|
|
||||||
this.matches('.enable') || this.checked
|
|
||||||
);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
delete(event) {
|
delete(event) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user