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
2012-05-15 00:02:43 +02:00

11 lines
284 B
CoffeeScript

$(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()
)