mirror of
https://github.com/YunoHost-Apps/limesurvey_ynh.git
synced 2024-09-03 19:36:32 +02:00
54 lines
1.3 KiB
PHP
54 lines
1.3 KiB
PHP
<?php
|
|
/**
|
|
* TbListView class file.
|
|
* @author Christoffer Niska <ChristofferNiska@gmail.com>
|
|
* @copyright Copyright © Christoffer Niska 2011-
|
|
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
|
|
* @package bootstrap.widgets
|
|
*/
|
|
|
|
Yii::import('zii.widgets.CListView');
|
|
|
|
/**
|
|
* Bootstrap Zii list view.
|
|
*/
|
|
class TbListView extends CListView
|
|
{
|
|
/**
|
|
* @var string the CSS class name for the pager container. Defaults to 'pagination'.
|
|
*/
|
|
public $pagerCssClass = 'pagination';
|
|
/**
|
|
* @var array the configuration for the pager.
|
|
* Defaults to <code>array('class'=>'ext.bootstrap.widgets.TbPager')</code>.
|
|
*/
|
|
public $pager = array('class'=>'bootstrap.widgets.TbPager');
|
|
/**
|
|
* @var string the URL of the CSS file used by this detail view.
|
|
* Defaults to false, meaning that no CSS will be included.
|
|
*/
|
|
public $cssFile = false;
|
|
|
|
/**
|
|
* Initializes the widget.
|
|
*/
|
|
public function init()
|
|
{
|
|
parent::init();
|
|
|
|
$popover = Yii::app()->bootstrap->popoverSelector;
|
|
$tooltip = Yii::app()->bootstrap->tooltipSelector;
|
|
|
|
$afterAjaxUpdate = "js:function() {
|
|
jQuery('.popover').remove();
|
|
jQuery('{$popover}').popover();
|
|
jQuery('.tooltip').remove();
|
|
jQuery('{$tooltip}').tooltip();
|
|
}";
|
|
|
|
if (!isset($this->afterAjaxUpdate))
|
|
$this->afterAjaxUpdate = $afterAjaxUpdate;
|
|
}
|
|
|
|
|
|
}
|