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

21 lines
475 B
CoffeeScript
Raw Normal View History

$(document).ready ->
$("#feed_list > li > a").on("ajax:success", (event, data) ->
$("#feed_content").html(data)
false
)
$("#feed_content").on("ajax:success", ".item > a", (event, data) ->
item = $(this).parent()
$("article", item).html(data)
.addClass("expanded")
.append($('<br class="clearing">'))
$("a", item).live()
false
)
$(".delete_feed").on("ajax:success", (event, data) ->
$(this).parent().remove()
false
)