Commit d791bfa1fcf0943ce35de072005af9e0e729944e

  • avatar
  • arvind
  • Thu Sep 25 16:00:17 IST 2014
Show all tags for images in galleryview in linked data page.
  
675675 return swt.get('where');
676676 });
677677
678 this.setGalleryView(_.uniq(swts, 'where'));
678 // this.setGalleryView(_.uniq(swts, 'where'));
679 this.setGalleryView(swts);
679680 // $(this.el).hide();
680681 },
681682 setGalleryView: function(swts) {
732732 render: function() {
733733 this.setUp();
734734 _.each(this.collection, function(model) {
735 $(this.el).append(this.template(model.toJSON()));
735 var models = swtr.LDs.filter(function(swt) {
736 if(swt.get('how').src == model.get('how').src) {
737 return model;
738 }
739 });
740 var tags = [];
741 _.each(models, function(model) {
742 if(model.get('how').tags) {
743 tags.push(model.get('how').tags);
744 }
745 });
746 tags = _.flatten(tags);
747 $(this.el).append(this.template({'how':{'tags': tags,
748 'src':model.get('how').src},
749 'who':model.get('who')}));
736750 }, this);
737751 $('html, body').animate({
738752 scrollTop: $("#gallery").offset().top