Merge branch 'master' into lqc-trunk
[redakcja.git] / platforma / static / js / views / gallery.js
old mode 100644 (file)
new mode 100755 (executable)
index a403c9e..d6844c6
@@ -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);