class @NotificationItem
  fetch_and_refresh_preview = (text, target) ->
    $.get "/notifications/items/markdown", {text: text}, (response) ->
      target.html response
  @refresh_preview = (source, target) ->
    fetch_and_refresh_preview source.val(), target
    source.on "keyup", ->
      fetch_and_refresh_preview source.val(), target

