tabulator loading ingredients

This commit is contained in:
Kaibu
2019-11-19 20:21:29 +01:00
parent ec23e431ea
commit dd9091007f
3 changed files with 14 additions and 3 deletions

View File

@@ -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",