       ''
   charDisableSubmit: ->
     Session.get('charsOffer') < 30 || Session.get('charsOffer') > 200
-  
+
   charLengthMessage: ->
     message = ''
     if Session.get('charsOffer') < 30

  "click .cancel": ->
    Session.set('editing_itemname', null)
    Session.set('charsOffer', null)
    
  "keyup textarea#newOffer": (evt) ->
    Session.set('charsOffer', $('textarea#newOffer').val().length)

      Offers.insert
        content: newOffer
        createdAt: new Date()
        userId: user._id
        username: user.username
        email: user.emails[0].address
        needId: Session.get('editing_itemname')
