               alert(data)
 
       $(document).on 'click', '.unsilence-submit-event', ->
-        misc = $(this).attr("misc")
+        misc = escapeString($(this).attr("misc"))
         $.post $(this).attr("rel"),
           (data) ->
             if data

  $('div.modal').attr("tabindex", "-1")

  if $('#primary_events_table').length > 0
    updateEventTable = ()->
      $('#updating_event_list').show()
      $('#primary_events_table').dataTable().fnReloadAjax()


    runPermanentHooks = ()->
      $(document).on 'keydown', '.silence-input', ->
        misc = escapeString($(this).attr("misc"))
        $('#no_input_' + $(this).attr("misc")).hide()
        if $(this).val().length >= $(this).data("min")
          $('[control="silence_submit_' + misc + '"]').addClass('btn-success').removeClass('btn-inverse')
