       group: routeGroup()
       sortBy: sortBy().key
 
-Template.postButtons.events
-  'click .sortSetDefault': (e) ->
-    e.stopPropagation()
-    console.log "Setting default sort for #{routeGroup()} to #{if sortBy().reverse then '-' else '+'}#{sortBy().key}"
-    Meteor.call 'groupDefaultSort', routeGroup(), sortBy()
-
 Template.registerHelper 'groups', ->
   Groups.find()
 

          0
      msgs.reverse() if sort.reverse
    msgs
  topMessageCount: ->
    pluralize(Messages.find
      group: @group
      root: null
    .count(), 'root message')

Template.messageShort.onRendered ->
  mathjax()

  $('[data-toggle="tooltip"]').tooltip()

Template.postButtons.events
  'click .sortSetDefault': (e) ->
    e.stopPropagation()
    console.log "Setting default sort for #{routeGroup()} to #{if sortBy().reverse then '-' else '+'}#{sortBy().key}"
    Meteor.call 'groupDefaultSort', routeGroup(), sortBy()

  'click .postButton': (e) ->
    e.preventDefault()
    e.stopPropagation()
