Skip to content

Commit

Permalink
fix fosjs routes
Browse files Browse the repository at this point in the history
  • Loading branch information
anikeevda committed Sep 29, 2017
1 parent d8758c4 commit fa6eada
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ nbproject/*
vendor/*
.idea/
.hg/*
/domstor-project/*
/domstor-project/**
/stepanets/**
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"doctrine/doctrine-bundle": "^1.6",
"doctrine/orm": "^2.5",
"domstor-project/template-bundle": "^1.5",
"friendsofsymfony/jsrouting-bundle": "^1.6",
"incenteev/composer-parameter-handler": "^2.0",
"leafo/scssphp": "^0.6",
"patchwork/jsqueeze": "^2.0",
Expand Down
4 changes: 2 additions & 2 deletions src/AppBundle/Resources/views/layout.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
'https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js'
'@AppBundle/Resources/public/js/main.js'
'@AppBundle/Resources/public/js/scrolltop.js'
'bundles/fosjsrouting/js/router.js'
'js/fos_js_routes.js'
%}
<script src="{{ asset_url }}"></script>
{% endjavascripts %}
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<script src="{{ asset('bundles/fosjsrouting/js/router.js') }}"></script>
<script src="{{ path('fos_js_routing_js', {'callback': 'fos.Router.setData'}) }}"></script>
{% block content_js %}{% endblock %}
{% endblock %}

Expand Down

0 comments on commit fa6eada

Please sign in to comment.