X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/8d490fc7810e0052bad3414b445b24276bbfca63..af0452ad29bec28c7095f144e11337e0972b7670:/platforma/static/js/views/gallery.js diff --git a/platforma/static/js/views/gallery.js b/platforma/static/js/views/gallery.js index a403c9ef..d6844c62 100644 --- a/platforma/static/js/views/gallery.js +++ b/platforma/static/js/views/gallery.js @@ -10,7 +10,8 @@ var ImageGalleryView = View.extend({ init: function(element, model, parent, template) { console.log("init for gallery"); - this._super(element, model, template); + var submodel = model.contentModels['gallery']; + this._super(element, submodel, template); this.parent = parent; console.log("gallery model", this.model);