title: Uncaught TypeError: Cannot call method 'match' of undefined
body: <p>I am trying to style the gridview with bootstrap;</p>
  
  <p>I changed the container tag from <code>div</code> tag to <code>table</code> tag.</p>
  
  <p>My <code>cgridview</code> crashes;</p>
  
  <p>The error:</p>
  
  <p><code>Uncaught TypeError: Cannot call method 'match' of undefined</code></p>
  
  <p>was encountered in the file <code>jquery.ba-bbq.js</code>:</p>
  
  <p><code>matches = url.match( is_fragment ? /^([^#]*)\#?(.*)$/ : /^([^#?]*)\??([^#]*)(#?.*)/ );</code></p>
  
  <p>on the <code>cgridview</code>:</p>
  
  <pre><code>&lt;div style="padding:5px;"&gt;
      &lt;div class="widget widget-4"&gt;
          &lt;div class="widget-head"&gt;
              &lt;h4 class="heading"&gt;Manage Orders&lt;/h4&gt;
          &lt;/div&gt;
          &lt;div class="widget-body"&gt;
              &lt;?php
              $this-&gt;widget('zii.widgets.grid.CGridView', array(
                  'id' =&gt; 'orders-grid',
                  'dataProvider' =&gt; $model-&gt;search(),
                  'filter' =&gt; $model,
                  'tagName' =&gt; 'table',
                  'htmlOptions' =&gt; array(
                      'class' =&gt; 'table',
                      'style' =&gt; 'width:auto;',
                      'align' =&gt; 'center',
                  ),
                  'template' =&gt;
                  '&lt;tr&gt;&lt;td&gt;{pager}&lt;/td&gt;&lt;/tr&gt;' .
                  '&lt;tr&gt;&lt;td&gt;{summary}&lt;/td&gt;&lt;/tr&gt;' .
                  '&lt;tr&gt;&lt;td&gt;{items}&lt;/td&gt;&lt;/tr&gt;' .
                  '&lt;tr&gt;&lt;td&gt;{summary}&lt;/td&gt;&lt;/tr&gt;' .
                  '&lt;tr&gt;&lt;td&gt;{pager}&lt;/td&gt;&lt;/tr&gt;',
                  'columns' =&gt; array(
                      array(
                          'header' =&gt; 'Order ID',
                          'name' =&gt; 'id',
                          'type' =&gt; 'raw',
                          'value' =&gt; 'CHtml::link($data-&gt;id,array("update","id"=&gt;$data-&gt;id))',
                      ),
                      array(
                          'header' =&gt; 'Name',
                          'name' =&gt; 'var_user_full_name',
                          'value' =&gt; '$data-&gt;UserFullName',
                          'filter' =&gt; CHtml::activeTextField($model, 'var_user_full_name'),
                      ),
                      array(
                          'name' =&gt; 'total_price',
                          'type' =&gt; 'raw',
                          'value' =&gt; '$data-&gt;currency." ".$data-&gt;total_price',
                      ),
                      array(
                          'name' =&gt; 'created',
                          'header' =&gt; 'Created',
                          'type' =&gt; 'raw',
                          'value' =&gt; 'date("d-m-Y h:i:s", $data-&gt;created)',
                      ),
                      array(
                          'name' =&gt; 'active',
                          'header' =&gt; 'Status',
                          'value' =&gt; 'OrdersData::$active[$data-&gt;active]',
                          'filter' =&gt; OrdersData::$active,
                      ),
                      array(
                          'class' =&gt; 'CButtonColumn',
                          'header' =&gt; 'Action',
                          'template' =&gt; '{update}',
                      ),
                  ),
              ));
              ?&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>