Commit 3c186ebd6f7c20f60968ce106b3893b53b1faee0
1 parent
8ab4ba7d
fix: or/other now forbidden only as siblings
Showing
1 changed file
with
1 additions
and
1 deletions
entries/static/entries/js/forms.js
... | ... | @@ -202,7 +202,7 @@ function bind_subform_conjunctions(selector, or) { |
202 | 202 | var conj_type2 = or ? 'other' : 'or'; |
203 | 203 | selector.find('.' + conj_type + '-button').click(function() { |
204 | 204 | var div = $(this).closest('.and-or-forms'); |
205 | - if (div.find('.form-' + conj_type2).length > 0) { | |
205 | + if (div.children('.form-' + conj_type2).length > 0) { | |
206 | 206 | show_warning_alert(gettext('Łączenie operatorów ‹lub› i ‹inny› na jednym poziomie formularza jest niemożliwe.'), div); |
207 | 207 | return; |
208 | 208 | } |
... | ... |