Skip to content
Snippets Groups Projects
Commit 168df782 authored by David Siegfried's avatar David Siegfried Committed by Jan-Hendrik Willms
Browse files

fix room-seearch filter, closes #1442

Closes #1442

Merge request studip/studip!1262
parent 71724582
No related branches found
No related tags found
No related merge requests found
...@@ -386,21 +386,21 @@ class Resources ...@@ -386,21 +386,21 @@ class Resources
return; return;
} }
var input = jQuery(icon_node).parent().find('input'); let input = jQuery(icon_node).parent().find('label').find('input');
var criteria_name = jQuery(input).attr('name'); let criteria_name = jQuery(input).attr('name');
var form = jQuery(icon_node).parents('form')[0]; let form = jQuery(icon_node).parents('form')[0];
if (!form) { if (!form) {
return; return;
} }
var select_element = jQuery(form).find('select.criteria-selector'); let select_element = jQuery(form).find('select.criteria-selector');
jQuery(icon_node).parent().remove(); jQuery(icon_node).parent().remove();
//enable the option in the select field: //enable the option in the select field:
var disabled_option = jQuery(select_element).find( let disabled_option = jQuery(select_element).find(
'option[value="' + criteria_name + '"]' 'option[value="' + criteria_name + '"]'
)[0]; )[0];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment