title: Yii - CHtml::link() Post with Confirmation Dialog Doesn't work
body: <pre><code>echo CHtml::link('Delete', '#', array('submit'=&gt;'admin/page/exhibitions/delete', 'params'=&gt;array('test'=&gt;50), 'csrf'=&gt;false, 'confirm'=&gt;'Are you sure?' ));
  </code></pre>
  
  <p>I can see in the inspector that Yii has inserted these line of code in html</p>
  
  <pre><code>jQuery(function($) {
    jQuery('body').on('click','#yt0',function(){if(confirm('gdfgdfgdfgd')) {jQuery.yii.submitForm(this,'admin/page/exhibitions/delete',{'test':50});return false;} else return false;});
    jQuery('body').on('click','#yt1',function(){if(confirm('gdfgdfgdfgd')) {jQuery.yii.submitForm(this,'admin/page/exhibitions/delete',{'test':50});return false;} else return false;});
    jQuery('body').on('click','#yt2',function(){if(confirm('gdfgdfgdfgd')) {jQuery.yii.submitForm(this,'admin/page/exhibitions/delete',{'test':50});return false;} else return false;});
  });
  </code></pre>
  
  <p>However, when I click on the generated link, the confirmation box pop up, when I click ok, nothing happened, except that my console shows the following error:</p>
  
  <p><code>Uncaught TypeError: Cannot call method 'submitForm' of undefined</code></p>
  
  <p>Anyone got an idea?</p>