Commit 4858c490 authored by Andrea Giammarchi's avatar Andrea Giammarchi

Issue 7251 - Remove currently useless table toggle

parent 7efa1d93
......@@ -1195,11 +1195,6 @@ html[dir="rtl"] #content-whitelist form button
font-weight: 600;
}
#custom-filters span:not(.io-filter-table-title)
{
margin: 0.5rem;
}
html:not([dir="rtl"]) #custom-filters .io-filter-table-title
{
margin-right: 2rem;
......@@ -1210,19 +1205,6 @@ html[dir="rtl"] #custom-filters .io-filter-table-title
margin-left: 2rem;
}
/* spans after the toggle are shown/hidden accordingly to the toggle state */
#custom-filters io-toggle.io-filter-table-state:not([checked]) + span,
#custom-filters io-toggle.io-filter-table-state[checked] + span + span
{
display: none;
}
#custom-filters .io-filter-table-active,
#custom-filters .io-filter-table-inactive
{
color: #077CA6;
}
#all-filter-lists-table li.show-message .last-update,
#all-filter-lists-table li:not(.show-message) .message,
.state span,
......
......@@ -301,9 +301,6 @@
<div id="custom-filters">
<h3>
<span class="i18n_options_customFilters_widget_title io-filter-table-title"></span>
<io-toggle class="io-filter-table-state" checked></io-toggle>
<span class="i18n_options_filterList_state_active io-filter-table-active"></span>
<span class="i18n_options_filterList_state_disabled io-filter-table-inactive"></span>
</h3>
<io-filter-table></io-filter-table>
</div>
......
......@@ -504,15 +504,6 @@ function loadCustomFilters(filters)
const cfTable = $("#custom-filters io-filter-table");
cfTable.filters = customFilters;
const toggle = $("#custom-filters io-toggle.io-filter-table-state");
cfTable.disabled = !toggle.checked;
toggle.addEventListener("change", toggleFiltersTable);
}
function toggleFiltersTable(event)
{
const cfTable = $("#custom-filters io-filter-table");
cfTable.disabled = !event.currentTarget.checked;
}
function removeCustomFilter(text)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment