X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/8d490fc7810e0052bad3414b445b24276bbfca63..a08a59835fa7872c69ec1a662aa7945473eeaf2b:/platforma/static/js/views/gallery.js?ds=sidebyside

diff --git a/platforma/static/js/views/gallery.js b/platforma/static/js/views/gallery.js
old mode 100644
new mode 100755
index a403c9ef..d6844c62
--- 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);