Commit 7037ef8f by niskac

Removed some unused code from BootWidget and updated the test page.

parent 5834a2cd
......@@ -325,7 +325,7 @@ Yii::app()->user->setFlash('error', '<strong>Oh snap!</strong> Change a few thin
'columns'=>$gridColumns,
)); ?>
<h3>Striped</h3>
<h3>Striped</h3>moi
<?php $this->widget('bootstrap.widgets.BootGridView', array(
'dataProvider'=>$gridDataProvider,
......
......@@ -9,7 +9,6 @@
/**
* Bootstrap base widget.
* Used for registering required scripts and defining default properties.
*/
class BootWidget extends CWidget
{
......@@ -25,33 +24,4 @@ class BootWidget extends CWidget
* @var array the HTML attributes for the widget container.
*/
public $htmlOptions = array();
/**
* Initializes the widget.
*/
public function init()
{
Yii::app()->clientScript->registerCoreScript('jquery');
}
/**
* Registers a JavaScript file under Bootstrap.
* @param string $fileName the name of the JavaScript file
* @param integer $position the position of the JavaScript file
*/
protected function registerScriptFile($fileName, $position=CClientScript::POS_HEAD)
{
Yii::app()->bootstrap->registerScriptFile($fileName, $position);
}
/**
* Registers a piece of javascript code.
* @param string $id ID that uniquely identifies this piece of JavaScript code
* @param string $script the javascript code
* @param integer $position the position of the JavaScript code
*/
protected function registerScript($id, $script, $position=CClientScript::POS_END)
{
Yii::app()->clientScript->registerScript($id, $script, $position);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment