Commit 26fd0a39477b373517fccf66fe20b14a011c520a
1 parent
9ea13393
removed adding subform on type select (made using ‘or’ impossible)
Showing
1 changed file
with
5 additions
and
2 deletions
entries/static/entries/js/forms.js
... | ... | @@ -14,10 +14,13 @@ function show_form_errors(form, errors) { |
14 | 14 | function bind_add_subforms(selector) { |
15 | 15 | selector.find('.add-button').click(function() { |
16 | 16 | add_subform($(this)); |
17 | - }).closest('.input-group').find('select').change(function() { | |
17 | + }); | |
18 | + // *don’t* do that – this makes adding ‘or’ impossible | |
19 | + // TODO: do that only when e.g. ctrl key is pressed? | |
20 | + /*.closest('.input-group').find('select').change(function() { | |
18 | 21 | // also add subform on selecting subform type |
19 | 22 | $(this).siblings().find('.add-button').click(); |
20 | - }); | |
23 | + });*/ | |
21 | 24 | } |
22 | 25 | |
23 | 26 | function bind_remove_subforms(selector) { |
... | ... |