       ev.preventDefault()
       textarea.text(shareText(update))
       focusTextArea(update)
-  
+
   # Delete update check
   $(".remove-update").click ->
     confirm "Are you sure you want to delete this update?"
-  
+
   # Manage reply state and service share checkboxes
   updateTickyboxes = ->
     return if(userTickiedBox)

  # Validate form on submit
  $("#update-form").submit ->
    false if textarea.val().length <= 0 || textarea.val().length > MAX_LENGTH
  
  # Helper method for RS messages
  shareText = (update) ->
    "RS @" + $(update).data("name") + ": " + $(update).find(".entry-content").text().trim()
    
  # Helper method to add text and move cursor to correct position
  focusTextArea = (update) ->
    $(update_field).attr("value", $(update).data("id"))

    $("#tweet").change(recordTickyboxChange)
  if( $("#facebook").length > 0)
    $("#facebook").change(recordTickyboxChange)
