Sha256: 0b88817cae542c9c4b153d8697f138e89f73887c3c7555fbdd8b5e557a515ea4

Contents?: true

Size: 704 Bytes

Versions: 1

Compression:

Stored size: 704 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'

      message:     self.data 'description' # @note deprecated
    )

Version data entries

1 entries across 1 versions & 1 rubygems

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