     $(".error-message").hide()
   )
 
-#** Reload hidden close_date field **
+# Reload hidden close_date field
 $ ->
   $("#input_date").change((e) ->
     date = $(this).val()

    $("#motion_close_date").val(local_datetime)
  )

#** character count for statement on discussion:show page **
pluralize_characters = ((num) ->
  if(num == 1)
    return num + " character"

    $("#description").html(linkify_html($("#description").html()))
    $(".comment-body").each(-> $(this).html(linkify_html($(this).html())))

# adds bootstrap popovers to vote buttons
$ ->
  $(".vote").popover
    placement: "top"

# disable links on usernames
$ ->
  $('.comment-username a, .member-name a').click((event) ->
    event.preventDefault()
  )
