diff --git a/app/assets/javascripts/notes.js.coffee b/app/assets/javascripts/notes.js.coffee index 416218d2e00a2f106b469de72f699c47b77d04d0..72e7492abc927491c95a72ed3ba601352748bf46 100644 --- a/app/assets/javascripts/notes.js.coffee +++ b/app/assets/javascripts/notes.js.coffee @@ -1,3 +1,11 @@ +#= require autosave +#= require bootstrap +#= require dropzone +#= require dropzone_input +#= require gfm_auto_complete +#= require jquery.atwho +#= require task_list + class @Notes @interval: null @@ -487,12 +495,12 @@ class @Notes form.find('.js-note-target-reopen').text('Reopen') form.find('.js-note-target-close').text('Close') - enableTaskList: -> - $('.note .js-task-list-container').taskList('enable') - initTaskList: -> @enableTaskList() $(document).on 'tasklist:changed', '.note .js-task-list-container', @updateTaskList + enableTaskList: -> + $('.note .js-task-list-container').taskList('enable') + updateTaskList: -> $('form', this).submit()