Rendering problem with TbAlert

Issue #212 new
Former user created an issue

Using TbAlert make my web page with no css (specially widgets using jquery). I comment a part of TbAlert to see what could be the problem, this part is problematic:

                // It bugs right there in registerScript
        $cs->registerScript(__CLASS__.'#'.$id, "jQuery('{$selector}').alert();");

        foreach ($this->events as $name => $handler)
            $handler = CJavaScript::encode($handler);
            $cs->registerScript(__CLASS__.'#'.$id.'_'.$name, "jQuery('{$selector}').on('{$name}', {$handler});");

Used with this:

<?php $this->widget('bootstrap.widgets.TbAlert', array(
        'block'=>true, // display a larger alert block?
        'fade'=>true, // use transitions?
        'closeText'=>'&times;', // close link text - if set to false, no close link is displayed
        'alerts'=>array( // configurations per alert type
            'success'=>array('block'=>true, 'fade'=>true, 'closeText'=>'&times;'), // success, info, warning, error or danger
    ); ?>

Comments (0)

  1. Log in to comment