Permalink
Browse files

Edited Listener/ResponseListener.php via GitHub

  • Loading branch information...
1 parent 56d9639 commit 3e174026b600e7de80928033d4189541cd595321 Gladhon committed Sep 6, 2011
Showing with 5 additions and 5 deletions.
  1. +5 −5 Listener/ResponseListener.php
@@ -88,12 +88,12 @@ protected function injectScripts(Response $response)
$script= <<<HTML
<script type="text/javascript">
- Ext.onReady(knpInitTranslator);
- knpInitTranslator(){
- new Knp.Translator({
+ var knpTranslator;
+ Ext.onReady(function() {
+ knpTranslator = new Knp.Translator({
url: '%s'
- });
- }
+ });
+ });
</script>
HTML;
$scripts .= sprintf($script, $this->router->generate('knplabs_translator_put'))."\n";

0 comments on commit 3e17402

Please sign in to comment.