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