mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-03 13:19:16 -05:00
tabulator loading ingredients
This commit is contained in:
@@ -42,7 +42,13 @@
|
||||
$(document).ready(function () {
|
||||
$('#id_keywords').select2();
|
||||
|
||||
var data = []
|
||||
var ingredients = {{ ingredients|safe }}
|
||||
|
||||
ingredients.forEach(function (cur, i) {
|
||||
cur.delete = false
|
||||
})
|
||||
|
||||
var data = ingredients
|
||||
|
||||
var table = new Tabulator("#ingredients-table", {
|
||||
index: "id",
|
||||
|
||||
Reference in New Issue
Block a user