Commit e807a9a6 authored by ginkgofjg's avatar ginkgofjg

Removed unnecessary flag variable in template.

parent 6bd0dca9
......@@ -109,11 +109,9 @@ class Main extends \CRM_Core_Page {
}
}
//This will enable setting of the lacation hash so that Angular knows
//Which page it is trying to load.
$this->assign("setRoute", ($this->region == "ajax-snippet"));
if($this->region == "ajax-snippet") {
$this->assign("route", $_REQUEST['route']);
}
// Set the location hash so that Angular knows which page it is trying to load.
$route = \CRM_Utils_Request::retrieve('route', 'String');
$this->assign("route", $route);
}
}
{if $setRoute}
<script type="text/javascript">
location.hash = '{$route}';
</script>
{if $route}
<script type="text/javascript">
location.hash = '{$route}';
</script>
{/if}
{literal}
<div ng-app="crmApp">
......
Markdown is supported
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