Sha256: fb7f22c3c58b6180c33e08fbf0236930d9f731d98a066771b7107e0c0c7e92f4

Contents?: true

Size: 630 Bytes

Versions: 18

Compression:

Stored size: 630 Bytes

Contents

$ ->
  initializePopover = (element) ->
    url = $(element).data('url')

    jqxhr = $.get(url, (data) =>
      createPopover(element, data)
      return
    ).done(->
      return
    ).fail(->
      return
    ).always(->
      return
    )

  createPopover = (element, data) ->
    popover = $(element).popover
      sanitize: false
      content: data
      html: true
      trigger: 'click'
    return

  initializePopover('#cmor-contact-whatsapp-popover-button')

  $(document).on 'keypress', 'textarea', (e) ->
    if e.which == 13 and !e.shiftKey
      $(this).closest('form').submit()
      e.preventDefault()
    return

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
cmor_contact-0.0.60.pre app/assets/javascripts/cmor/contact/application/whatsapp_widget.js.coffee
cmor_contact-0.0.59.pre app/assets/javascripts/cmor/contact/application/whatsapp_widget.js.coffee
cmor_contact-0.0.58.pre app/assets/javascripts/cmor/contact/application/whatsapp_widget.js.coffee
cmor_contact-0.0.57.pre app/assets/javascripts/cmor/contact/application/whatsapp_widget.js.coffee
cmor_contact-0.0.56.pre app/assets/javascripts/cmor/contact/application/whatsapp_widget.js.coffee
cmor_contact-0.0.55.pre app/assets/javascripts/cmor/contact/application/whatsapp_widget.js.coffee
cmor_contact-0.0.54.pre app/assets/javascripts/cmor/contact/application/whatsapp_widget.js.coffee
cmor_contact-0.0.53.pre app/assets/javascripts/cmor/contact/application/whatsapp_widget.js.coffee
cmor_contact-0.0.52.pre app/assets/javascripts/cmor/contact/application/whatsapp_widget.js.coffee
cmor_contact-0.0.51.pre app/assets/javascripts/cmor/contact/application/whatsapp_widget.js.coffee
cmor_contact-0.0.50.pre app/assets/javascripts/cmor/contact/application/whatsapp_widget.js.coffee
cmor_contact-0.0.49.pre app/assets/javascripts/cmor/contact/application/whatsapp_widget.js.coffee
cmor_contact-0.0.48.pre app/assets/javascripts/cmor/contact/application/whatsapp_widget.js.coffee
cmor_contact-0.0.45.pre app/assets/javascripts/cmor/contact/application/whatsapp_widget.js.coffee
cmor_contact-0.0.44.pre app/assets/javascripts/cmor/contact/application/whatsapp_widget.js.coffee
cmor_contact-0.0.43.pre app/assets/javascripts/cmor/contact/application/whatsapp_widget.js.coffee
cmor_contact-0.0.42.pre app/assets/javascripts/cmor/contact/application/whatsapp_widget.js.coffee
cmor_contact-0.0.41.pre app/assets/javascripts/cmor/contact/application/whatsapp_widget.js.coffee