yiibooster确认模态

I using the button CONFIRM MODAL (http://yii-booster.clevertech.biz/javascript.html#modals) I do not know how to take the boolean variable "confirm" to pass it to a controller

I tray something like this

<?php 
if ($model->confirmado == 0) {
    $this->widget('bootstrap.widgets.TbButton', array(
        'label'=>'Confirmar Planilla',
        'type'=>'warning',
        'htmlOptions'=>array(
            'onclick'=>'js:bootbox.confirm("¿Esta seguro que desea confirma la planilla?",
                function(confirmed){ 
                    console.log("Confirmed: "+confirmed);
                    $.ajax({
                        url: CController::createUrl(array("adulto/confirmar")),
                        data: { "term": confirmed.term },
                        success: function(data) { response(data); }
                    });
                })',
        ),
    ));
}?>

but didnt work for me....any suggestions?

thanks!!