lib/carte/client/views/edit.cjsx in carte-server-0.0.20 vs lib/carte/client/views/edit.cjsx in carte-server-0.0.21
- old
+ new
@@ -16,16 +16,16 @@
content: @props.card.get('content')
tags: @props.card.get('tags') || []
errors: false
shaking: false
- onChangeTitle: ->
+ onChangeTitle: (event)->
@setState title: event.target.value
- onChangeContent: ->
+ onChangeContent: (event)->
@setState content: event.target.value
- onClickOk: ()->
+ onClickOk: (event)->
event.preventDefault()
@setState updating: true
if @props.card.isNew()
attributes = {title: @state.title, content: @state.content, tags: @state.tags}
else