예제 #1
0
function content_delete($contentid)
{
    $objResponse = new xajaxResponse();
    deletecontent($contentid);
    $objResponse->script("\$('#tr_{$contentid}').effect('fade', [], 3000);");
    $objResponse->clear("contentlist", "innerHTML");
    $objResponse->assign("contentlist", "innerHTML", display_content_list());
    return $objResponse;
}
예제 #2
0
function content_delete($contentid)
{
    $objResponse = new xajaxResponse();
    deletecontent($contentid);
    $objResponse->script("new Effect.Fade('tr_{$contentid}', { afterFinish:function() { xajax_content_list_ajax(); } });");
    return $objResponse;
}