mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
hidden field for movement
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
|
||||
<form action="." method="post">
|
||||
{% csrf_token %}
|
||||
|
||||
{{ form|crispy }}
|
||||
<div id="ingredients-table"></div>
|
||||
<br>
|
||||
@@ -84,6 +85,8 @@
|
||||
}
|
||||
});
|
||||
|
||||
// load initial value
|
||||
$('#ingredients_data_input').val(JSON.stringify(data))
|
||||
|
||||
document.getElementById("new_empty").addEventListener("click", function () {
|
||||
data.push({
|
||||
|
||||
Reference in New Issue
Block a user