Skip to content

Commit

Permalink
No need for a function
Browse files Browse the repository at this point in the history
  • Loading branch information
Lubosky committed Jul 18, 2024
1 parent a4ffb9c commit 1683445
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ window.SupportLetters =
init: ->
$('.js-support-letter-attachment').each (idx, el) ->
SupportLetters.fileupload_init(el)
SupportLetters.save_collection_init()

$(document).on 'change', '.js-trigger-autosave', debounce(SupportLetters.submit, 1000)

new_item_init: (el) ->
SupportLetters.clean_up_system_tags(el)
Expand Down Expand Up @@ -66,9 +67,6 @@ window.SupportLetters =
hiddenInput = $('<input class="js-support-entry-id">').prop('type', 'hidden').prop('name', prefixed)
parent.append(hiddenInput)

save_collection_init: () ->
$(document).on 'change', '.js-trigger-autosave', debounce(SupportLetters.submit, 1000)

autosave: () ->
url = $('form.qae-form').data('autosave-url')
if url
Expand Down

0 comments on commit 1683445

Please sign in to comment.