Update EDataTables.php

Added new option to extension "jqueryDataTables" (default: true). This option allows you to turn on/off the loading of the included 'jquery.DataTables.js' script. I loaded all my own JS and CSS files using official CDN's to use the latest version of DataTables and Bootstrap. I noticed that everything was working, except the pagination buttons were broken. In order to fix the pagination, you must remove the included jquery.DataTables.js and use an updated one. This is impossible because it's loading was hard coded.

I have added a new option to be used when loading, or in your Widget Factory, that now allows you to turn this off so you can include your own.

Please approve my request, or create your own solution if you can think of a better way to solve this issue.

Use my fork, and my Widget Factory options, and you will have a datatable that looks exactly like this: http://www.datatables.net/manual/styling/bootstrap-simple.html

My Widget Factory in my Yii /protected/config/main.php:

		'widgetFactory' => array(
			'class'=>'CWidgetFactory',
			'widgets'=>array(
			
				'EDataTables' => array(
					'itemsCssClass' => 'table table-striped table-bordered dataTable no-footer',
					'datatableTemplate' => null,	// null, '', or false ? Makes it stock
					'registerJUI' => false,
					'jqueryDataTables' => false,

					'options' => array(
						'bSort' => true,
						'bJQueryUI' => false,
						'bPaginate' => true,
					),
					
					'cssFiles' => array(
						'//cdn.datatables.net/plug-ins/9dcbecd42ad/integration/bootstrap/3/dataTables.bootstrap.css',
					),
					
					'jsFiles' => array(
						'//cdn.datatables.net/1.10.4/js/jquery.dataTables.min.js',
						'//cdn.datatables.net/plug-ins/9dcbecd42ad/integration/bootstrap/3/dataTables.bootstrap.js',
						'jdatatable.js' => CClientScript::POS_END,
					),
				),
				
			),
		),