This repository has been archived on 2021-07-13. You can view files and clone it, but cannot push or open issues or pull requests.
feedfu/app/assets/javascripts/feeds.js.coffee

12 lines
284 B
CoffeeScript
Raw Normal View History

$(document).ready ->
$("#feed_list > li > a").on("ajax:success", (event, data) ->
$("#feed_content").html(data)
)
$("#feed_content").on("ajax:success", ".item > a", (event, data) ->
item = $(this).parent()
$("article", item).html(data)
$("a", item).live()
)