title: $.fn.yiiListView.update doesn't update ClistView
body: <p>I'm trying to update my ClistView in Yii 1.1.15, using <code>$.fn.yiiListView.update</code>. <strong>I do get it to echo the proper results</strong> back, but it doesn't update the list.</p>
  
  <p>in my JS</p>
  
  <pre><code>var ajaxRequest = "lat="+position.coords.latitude+"&amp;lng="+position.coords.longitude;
  $.fn.yiiListView.update("store-list", {data:ajaxRequest});
  </code></pre>
  
  <p>in my <code>actionIndex()</code></p>
  
  <pre><code>if ($_GET['ajax']==='store-list') {
              $sql = "SELECT * FROM ........ ";
              $count=Yii::app()-&gt;db-&gt;createCommand('SELECT COUNT(*) FROM `store` WHERE `pending`!="1"')-&gt;queryScalar();
              //echo $query;
              $dataProvider=new CSqlDataProvider($sql, array(
                                                      'params'=&gt; array(':lat' =&gt; $lat, ':lng'=&gt;$lng, ':radius'=&gt;$radius),
                                                      'totalItemCount'=&gt;$count,
                                                      'sort'=&gt;array(
                                                          'attributes'=&gt;array(
                                                               'store', 'state', 'distance',
                                                          ),
                                                      ),
                                                      'pagination'=&gt;false
                                                  )
                                              );
              //render page
              $this-&gt;renderPartial('_store-list',array(
                      'dataProvider'=&gt;$dataProvider,
              ));
          }
  </code></pre>
  
  <p>in my view, <code>index.php</code> i call <code>_store-list.php</code> like this</p>
  
  <pre><code>&lt;div class="padding-top-20px"&gt;
              &lt;?php $this-&gt;renderPartial('_store-list', array("dataProvider"=&gt;$dataProvider)); ?&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>in my <code>_store-list.php</code> i have this</p>
  
  <pre><code>&lt;?php 
          $this-&gt;widget('zii.widgets.CListView', array(
              'id' =&gt; 'store-list',
              'dataProvider'=&gt;$dataProvider,
              'itemView'=&gt;'_view',
              'pagerCssClass' =&gt; 'pagination',
              'ajaxUpdate'=&gt;false, //disable ajax sort and pagination
              'loadingCssClass' =&gt; '', //remove loading icon
              'sortableAttributes'=&gt;array(
                  'dealership' =&gt; 'Store',
                  'state' =&gt; 'State',
                  'distance' =&gt; 'Distance'
              ),
          )); ?&gt;
  </code></pre>
  
  <p>any idea's why it doesnt update the clistview?</p>
  
  <p><strong>UDPATED:</strong></p>
  
  <p>narrowed it down to this. in my <code>jquery.yiilistview.js</code> the each loop fails. tried manually setting the ajaxUpdate variable liks this. but still failed. in debug <code>ajaxUpdate</code> is still empty. any ideas?</p>
  
  <p>in my JS:</p>
  
  <pre><code> $.fn.yiiListView.update("store-list", {ajaxUpdate:"store-list", data:ajaxRequest});
  </code></pre>
  
  <p>in <code>jquery.yiilistview.js</code>:</p>
  
  <pre><code>success: function(data,status) {
                  console.debug(settings);
                  $.each(settings.ajaxUpdate, function(i,v) {
                      $(id).replaceWith($(id,'&lt;div&gt;'+data+'&lt;/div&gt;'));
                  });
                  if(settings.afterAjaxUpdate != undefined)
                      settings.afterAjaxUpdate(id, data);
              },
  </code></pre>