Commit a5299c85 authored by Tim Steiner's avatar Tim Steiner
Browse files

Make the baseUrl available to jQuery in WdnTemplate() .

parent eec15537
......@@ -67,7 +67,10 @@ class Unl_View_Helper_WdnTemplate extends Zend_View_Helper_Abstract
$template->head .= "\n" . $this->view->headLink()->__toString()
. "\n" . $this->view->headMeta()->__toString()
. "\n" . $this->view->headScript()->__toString()
. "\n" . $this->view->headStyle()->__toString();
. "\n" . $this->view->headStyle()->__toString()
. '<script type="text/javascript">'
. "WDN.jQuery(function() {WDN.jQuery('body').data('baseUrl', '" . $this->view->baseUrl() . "');});"
. '</script>';
$template->loadSharedCodeFiles();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment