diff --git a/index.php b/index.php index 695a864..c5a36e7 100644 --- a/index.php +++ b/index.php @@ -8,7 +8,27 @@ - + + + + + + + + + + + diff --git a/js/modules/item/item.js b/js/modules/item/item.js index d024063..757780f 100644 --- a/js/modules/item/item.js +++ b/js/modules/item/item.js @@ -90,8 +90,11 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/item/itemViewTemplate. var countImgLoaded = 0; Profile.existRicettaBloccoNote(ric.ricetta_id, function (exist) { + + var ric = self.collRicetta.toJSON()[0]; + self.$el.append(self.template({ - ricetta: self.collRicetta.toJSON()[0], + ricetta: ric, ingredienti: self.collIngredienti.toJSON(), profile: Profile, //images: Images,