/**
 * Created by A.J on 2016/10/16.
 */
$(document).ready(function(){
    $('table a.twitter').confirm({
        title: $('#quedingshanchu').text(),
        content: $('#bukehuifu').text(),
        confirmButton: $('#jixu').text(),
        cancelButton: $('#quxiao').text(),
        confirm: function(){
            var obj = this.$target;
            $.post("removeMessage", { id: this.$target.parent().siblings(":eq(0)").text()},
                function(data){
                    obj.parent().parent().remove();
                });
        }
    });
});