Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Commit

Permalink
#88 - add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Sharov committed Nov 2, 2012
1 parent b1d322f commit be97a99
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions protected/components/ClientScript.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
<?php
class ClientScript extends CClientScript
{

/**
* add JSONP-supporting functionality
* using: $.getJSON('url?callback=?', function(html) {alert(html);});
* see(http://api.jquery.com/jQuery.getJSON/#jsonp)
* all registered scripts (non file) will evaluate on client automatically
*
* @param string $output
*/
public function render(&$output)
{
if (Yii::app()->request->getIsAjaxRequest() && isset($_GET['callback']))
Expand Down

0 comments on commit be97a99

Please sign in to comment.