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);
-    }
 }
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.