Sha256: e39a641db0fd2744068b12dd01bb2a7dfaa16fa55c44f5a9f73dd50f5fc3e803

Contents?: true

Size: 594 Bytes

Versions: 3

Compression:

Stored size: 594 Bytes

Contents

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

    SharingTags.share(
      network,
      mobile:  device?.mobile()  # for mobile devices
      page_url: self.attr("href")
      url:     self.data 'share-url'
      title:   self.data 'title'
      message: self.data 'description'
      image:   self.data 'image'
      app_id:  self.data 'app-id'
    )

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sharing_tags-0.0.9 app/assets/javascripts/sharing_tags/links.js.coffee
sharing_tags-0.0.8 app/assets/javascripts/sharing_tags/links.js.coffee
sharing_tags-0.0.7 app/assets/javascripts/sharing_tags/links.js.coffee