N°8955 add UI block for uninstallation

This commit is contained in:
Timmy38
2026-02-27 17:05:26 +01:00
committed by Eric Espie
parent f80a074135
commit add7e7a677
34 changed files with 1023 additions and 6 deletions

View File

@@ -0,0 +1,8 @@
<span id="{{ oUIBlock.GetId() }}"
class="{{ oUIBlock.GetBlocksInheritanceCSSClassesAsString() }} {{ oUIBlock.GetAdditionalCSSClassesAsString() }} ibo-is-{{ oUIBlock.GetColor() }}"
{% if oUIBlock.GetTooltip() is not empty %}
data-tooltip-content="{{ oUIBlock.GetTooltip() }}"
{% endif %}
>
{{ oUIBlock.GetLabel() }}
</span>

View File

@@ -1,5 +1,8 @@
$('#{{ oUIBlock.GetId() }}').parent().on('click', function() {
let oInput = $(this).find('.ibo-toggler');
oInput.prop('checked', !oInput.prop('checked'));
oInput.trigger('change');
let oInput = $(this).find('.ibo-toggler');
if (!oInput.prop('disabled')) {
oInput.prop('checked', !oInput.prop('checked'));
oInput.trigger('change');
}
});