Empty template now recognized as allowing markdown editing

Save saves markdown and updates the xml
This commit is contained in:
Don Mitchell
2013-01-08 10:53:45 -05:00
parent 735aa13496
commit 76f2ef6f7c
3 changed files with 11 additions and 3 deletions

View File

@@ -55,7 +55,7 @@ class CMS.Views.ModuleEdit extends Backbone.View
clickSaveButton: (event) =>
event.preventDefault()
data = @module.save()
data.metadata = @metadata()
data.metadata = _.extend(data.metadata, @metadata())
$modalCover.hide()
@model.save(data).done( =>
# # showToastMessage("Your changes have been saved.", null, 3)