 
 module.exports.FeedItemView = class FeedItemView extends Backbone.View
 
+  events:
+    "click .purchase" : "purchase"
+    'click .see-more' : 'fetchMoreArtworks'
+    'click .feed-item-contact-gallery': 'contactGallery'
+
   artworksPage: 1
-
   artworksPageSize: 8
 
   initialize: (options) ->

        AcquireArtwork artwork, $target
    false


  fetchMoreArtworks: ->
    @$seeMore ?= @$('.see-more')
    @$seeMore.addClass 'is-loading'
    @model.toChildModel().fetchArtworks
      success: (artworks) =>
        @$seeMore.remove()
        @$('.feed-large-artworks-columns').html artworkColumns artworkColumns: artworks.groupByColumnsInOrder(4)
        @setupArtworkSaveControls artworks
    false

  contactGallery: (e) ->
    new ShowInquiryView show: @model
  moreArtworksClick: (event) =>
    analytics.track.click "Clicked show all artworks on feed item"
    @fetchMoreArtworks $(event.target)

  fetchMoreArtworks: ->
    @$seeMore ?= @$('.see-more')
    @$seeMore.addClass 'is-loading'
    @model.toChildModel().fetchArtworks
      success: (artworks) =>
        @$seeMore.remove()
        @$('.feed-large-artworks-columns').html artworkColumns artworkColumns: artworks.groupByColumnsInOrder(4)
        @setupArtworkSaveControls artworks
    false

  setupArtworkSaveControls: (artworks=@model.artworks().models)->
    listItems =
