Sha256: 3752f489abd15fe90e91516fade05e506817d94a9fe0e3587a92769868b55049

Contents?: true

Size: 335 Bytes

Versions: 8

Compression:

Stored size: 335 Bytes

Contents

$ ->
  $(".note-wrapper form").submit (event) ->
    event.preventDefault()

    $note = $(this).find(".note")
    $(this).find(".toggle-note").prop "checked", false
    $note.addClass "-saving"

    $.post this.action, $(this).serialize(), (data) =>
      $note.removeClass "-saving"
      $note.toggleClass "-saved", data == "true"

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
study_engine-0.3.1 app/assets/javascripts/study_engine/admin_notes.js.coffee
study_engine-0.3.0 app/assets/javascripts/study_engine/admin_notes.js.coffee
study_engine-0.2.2 app/assets/javascripts/study_engine/admin_notes.js.coffee
study_engine-0.2.1 app/assets/javascripts/study_engine/admin_notes.js.coffee
study_engine-0.2.0 app/assets/javascripts/study_engine/admin_notes.js.coffee
study_engine-0.1.1 app/assets/javascripts/study_engine/admin_notes.js.coffee
study_engine-0.1.0 app/assets/javascripts/study_engine/admin_notes.js.coffee
study_engine-0.0.2 app/assets/javascripts/study_engine/admin_notes.js.coffee