Sha256: 9b5a8732cb70c570abd7a589840c504cf552e9a88f5443b5e050b826f3df96f5

Contents?: true

Size: 594 Bytes

Versions: 2

Compression:

Stored size: 594 Bytes

Contents

$(document).on 'click', "@sharing_tags_share", (event) ->
  event.preventDefault()
  self = $(@)

  share = SharingTags.share(
    self.data('network'),
    page_url:    self.attr 'href'
    url:         self.data 'share-url'
    title:       self.data 'title'
    description: self.data 'description'
    image:       self.data 'image'
    app_id:      self.data 'app-id'
    provider:    self.data 'provider'
    caption:     self.data 'caption'
    context:     self.data 'context'
    message:     self.data 'description' # @note deprecated
  )

  share.callback.click_action(target: self)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sharing_tags-0.0.18 app/assets/javascripts/sharing_tags/links.js.coffee
sharing_tags-0.0.17 app/assets/javascripts/sharing_tags/links.js.coffee