IB.content = {fluid:{},e:{}};

IB.content.init = function()
{
    $('a.delete').click(IB.actions.del);
};

IB.actions.del = function()
{
    if(confirm('Are you sure ?'))
    {
        $.loading();
        var item = $(this);

        var id = item.attr('id').replace('contentId','');

        'Content_delete'.ajax('id='+id,function(d)
        {
            $.displayMessage(d).loaded();
            
            display("administration");
        });
    }
};
