1
0
mirror of https://github.com/fazo96/markcloud.git synced 2025-01-10 11:04:21 +01:00

fix update/upload

This commit is contained in:
Enrico Fasoli 2014-10-09 18:21:17 +02:00
parent 5399e44104
commit 6800c51f13

View File

@ -125,7 +125,7 @@ Template.editor.events
return notify msg: "Empty documents are not valid."
if @_id then docs.update @_id, $set: {
title: t.find('#title').value
text: t.find('#editor').value
text: MandrillAce.getInstance().value()
showTitle: $('#show-title').is(':checked')
public: $('#make-public').is(':checked')
}, (err) =>
@ -135,7 +135,7 @@ Template.editor.events
Router.go 'doc', _id: @_id
else docs.insert {
title: t.find('#title').value
text: t.find('#editor').value
text: MandrillAce.getInstance().value()
showTitle: $('#show-title').is(':checked')
public: $('#make-public').is(':checked')
}, (err,id) ->