Commit 28ea6628 by Calen Pennington

Save a draft before publishing it

parent 7ccdc5d4
...@@ -124,6 +124,7 @@ class CMS.Views.UnitEdit extends Backbone.View ...@@ -124,6 +124,7 @@ class CMS.Views.UnitEdit extends Backbone.View
publishDraft: (event) -> publishDraft: (event) ->
@wait(true) @wait(true)
@saveDraft()
$.post('/publish_draft', { $.post('/publish_draft', {
id: @$el.data('id') id: @$el.data('id')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment