var Cabuloso = {
    async: function(response) {
        var self = $(this)
        if(self.hasClass("delete")) {
            var parent = self.parents("li")
            if(parent.length) parent.remove()
        }
    }
}

$(function() {
    Shadowbox.init()
    
    $("a[rel=async]").click(function(e) {
        e.preventDefault()
        var self = this
        $.get($(self).attr("href"), {}, function(response) {
            Cabuloso.async.call(self, response)
        })
    })
})