Skip to content
Snippets Groups Projects
Commit d683a96a authored by Kasia Krasnowska's avatar Kasia Krasnowska
Browse files

fix: or/other now forbidden only as siblings

parent 96c5ec1f
Branches
Tags
No related merge requests found
...@@ -202,7 +202,7 @@ function bind_subform_conjunctions(selector, or) { ...@@ -202,7 +202,7 @@ function bind_subform_conjunctions(selector, or) {
var conj_type2 = or ? 'other' : 'or'; var conj_type2 = or ? 'other' : 'or';
selector.find('.' + conj_type + '-button').click(function() { selector.find('.' + conj_type + '-button').click(function() {
var div = $(this).closest('.and-or-forms'); var div = $(this).closest('.and-or-forms');
if (div.find('.form-' + conj_type2).length > 0) { if (div.children('.form-' + conj_type2).length > 0) {
show_warning_alert(gettext('Łączenie operatorów ‹lub› i ‹inny› na jednym poziomie formularza jest niemożliwe.'), div); show_warning_alert(gettext('Łączenie operatorów ‹lub› i ‹inny› na jednym poziomie formularza jest niemożliwe.'), div);
return; return;
} }
......
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