From 4e81fd1e63495d0278110048f697467ab8ae52e5 Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Fri, 19 Oct 2012 10:03:40 -0400 Subject: [PATCH] Improved inline script generation. --- .../blueprint/templates/Recommend/PubDateVisAjax.phtml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/themes/blueprint/templates/Recommend/PubDateVisAjax.phtml b/themes/blueprint/templates/Recommend/PubDateVisAjax.phtml index 2d0ee0873a6..1ded1375862 100644 --- a/themes/blueprint/templates/Recommend/PubDateVisAjax.phtml +++ b/themes/blueprint/templates/Recommend/PubDateVisAjax.phtml @@ -15,8 +15,11 @@ <div id="clearButtonText" style="display: none"><?=$this->translate('Clear') ?></div> </div> <? endforeach; ?> - <script type="text/javascript"> - loadVis('<?=$this->recommend->getFacetFields() ?>', '<?=$this->recommend->getSearchParams() ?>', path, <?=$this->recommend->getZooming() ?>); - </script> + <? + $js = "loadVis('" . $this->recommend->getFacetFields() . "', '" + . $this->recommend->getSearchParams() . "', path, " + . $this->recommend->getZooming() . ");"; + echo $this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $js); + ?> <? endif; ?> -- GitLab