Issue #273 new

Plugin option encode

Anonymous created an issue

In the "Bootstrap.php" component, "registerPlugin" method, the $option is encoded using "json_encode", why not to use CJavaScript::encode so that it can support javascript function for the "content" option.

Eg.

'content' => 'js: function() {}'

will output

$('.popover').popover({content: function() {} });

instead of

$('.popover').popover({content: "function() {}" });

Comments (1)

  1. Log in to comment