Commits

Christoffer Niska committed 2c9ee11

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

Comments (0)

Files changed (2)

demo/protected/views/site/index.php

 				'columns'=>$gridColumns,
 			)); ?>
 
-			<h3>Striped</h3>
+			<h3>Striped</h3>moi
 
 			<?php $this->widget('bootstrap.widgets.BootGridView', array(
 				'dataProvider'=>$gridDataProvider,

widgets/BootWidget.php

 
 /**
  * Bootstrap base widget.
- * Used for registering required scripts and defining default properties.
  */
 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);
-    }
 }