Skip to content

Commit

Permalink
adding uri and uriSpace to the variables passed to javascript, relate…
Browse files Browse the repository at this point in the history
…d to #438
  • Loading branch information
henriyli committed Feb 22, 2016
1 parent 2d64668 commit e8dd913
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions view/scripts.twig
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ var vocab = "{{ request.vocabid }}";
{% if parameters %}
var waypoint_results = {{ parameters.searchLimit }};
{% endif %}
{% if request.page == 'page' and search_results and search_results|length == 1 %}
var uri = "{{ search_results|first.uri }}";
var uriSpace = "{{ request.vocab.uriSpace }}";
{% endif %}
</script>

<script type="text/javascript" src="vendor/components/jquery/jquery.min.js"></script>
Expand Down

0 comments on commit e8dd913

Please sign in to comment.