Sha256: 952c5adba733a37c663bdd54d804bc61a8c89d8165b35cd5fdf1b74bd16f3173

Contents?: true

Size: 499 Bytes

Versions: 3

Compression:

Stored size: 499 Bytes

Contents

window.enjoy_cms.feedback.create_ajax_form = (form_selector = "#new_enjoy_feedback_contact_message", wrapper_selector = "#enjoy_feedback_contact_form" )->

  $(document).delegate form_selector, "ajax:complete", (event, xhr, status)->
    $(event.currentTarget).closest(wrapper_selector).html(xhr.responseText)

  $(document).delegate form_selector + " .input", 'click', (e) ->
    e.preventDefault()
    $(e.currentTarget).removeClass("field_with_errors").find('span.error').hide()
    return false

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
enjoy_cms_feedback-0.4.1 app/assets/javascripts/enjoy/feedback/form.coffee
enjoy_cms_feedback-0.4.0 app/assets/javascripts/enjoy/feedback/form.coffee
enjoy_cms_feedback-0.4.0.beta3 app/assets/javascripts/enjoy/feedback/form.coffee