Sha256: e8e553a142892fd62e017c085731d6b8db92706e5fbce434d24f7def584796a8

Contents?: true

Size: 730 Bytes

Versions: 3

Compression:

Stored size: 730 Bytes

Contents

$(document).on 'click', "@sharing_tags_share", (event) ->
    event.preventDefault()
    self = $(@)
    network = self.data('network')
    context = self.data('context')
    jQuery?(window).trigger(type: "sharing_tags.click_action", network: network, context: context, target: self)

    SharingTags.share(
      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:     context
      message:     self.data 'description' # @note deprecated
    )

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sharing_tags-0.0.16 app/assets/javascripts/sharing_tags/links.js.coffee
sharing_tags-0.0.15 app/assets/javascripts/sharing_tags/links.js.coffee
sharing_tags-0.0.14 app/assets/javascripts/sharing_tags/links.js.coffee