Skip to content

Commit d015c96

Browse files
Rewording
As a separate PR, as recommended by #13450 (comment) Note: `addTagForm` was the wrong function name, it's now called `addFormToCollection()`
1 parent c497b6c commit d015c96

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

form/form_collections.rst

+4-8
Original file line numberDiff line numberDiff line change
@@ -304,14 +304,10 @@ button so you can add a new tag form (``addFormToCollection()`` will be show nex
304304
})
305305
});
306306
307-
The ``addTagForm()`` function's job will be to use the ``data-prototype`` attribute
308-
to dynamically add a new form when this link is clicked. The ``data-prototype``
309-
HTML contains the tag ``text`` input element with a name of ``task[tags][__name__][name]``
310-
and id of ``task_tags___name___name``. The ``__name__`` is a little "placeholder",
311-
which you'll replace with a unique, incrementing number (e.g. ``task[tags][3][name]``).
312-
313-
The actual code needed to make this all work can vary quite a bit, but here's
314-
one example:
307+
The ``data-prototype`` HTML contains the tag's ``text`` input element with a name of
308+
``task[tags][__name__][name]`` and id of ``task_tags___name___name``. The ``__name__``
309+
part is a "placeholder", which is replaced by a unique, incrementing number
310+
(e.g. ``task[tags][3][name]``).
315311

316312
.. code-block:: javascript
317313

0 commit comments

Comments
 (0)