Commit bbd5a50d authored by Aria Givi's avatar Aria Givi

Icons angepasst

parent 70981d94
$(function () {
setLabelText();
setKeyListeners();
setDropdownListener();
setDropdownListeners();
});
/**
......@@ -19,25 +19,26 @@ function setKeyListeners () {
});
}
function setDropdownListener() {
$('input:checkbox#toggle-dropdowns').change(
function() {
function setDropdownListeners() {
$('input:checkbox#toggle-dropdowns').change(function() {
if($(this).is(':checked')) {
$("#toggle-dropdowns-label").html(t('close-dropdowns'));
$("#toggle-dropdowns-label").html(t('close-dropdowns') + ' <i class="fa fa-minus-square" aria-hidden="true"></i>');
$(".focus-dropdown-toggle").prop('checked', true);
} else {
$("#toggle-dropdowns-label").html(t('open-dropdowns'));
$("#toggle-dropdowns-label").html(t('open-dropdowns') + ' <i class="fa fa-plus-square" aria-hidden="true"></i>');
$(".focus-dropdown-toggle").prop('checked', false);
}
}
)
});
$(".focus-dropdown-toggle").change(function() {
});
}
function setLabelText() {
if($('input:checkbox#toggle-dropdowns').is(':checked')) {
$("#toggle-dropdowns-label").html(t('close-dropdowns'));
$("#toggle-dropdowns-label").html(t('close-dropdowns') + ' <i class="fa fa-minus-square" aria-hidden="true"></i>');
} else {
$("#toggle-dropdowns-label").html(t('open-dropdowns'));
$("#toggle-dropdowns-label").html(t('open-dropdowns') + ' <i class="fa fa-plus-square" aria-hidden="true"></i>');
}
}
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