Created
October 30, 2012 10:22
-
-
Save sorbing/3979468 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.routes['url_cities'] = {{ path('stepcart_city_list') }}; // сейвим текущий роут | |
var w = new CcWidget({ | |
widgets: [ | |
{% for i in range(0, form.user.addresses|length-1) %} | |
{ | |
... | |
}{% if not loop.last %},{% endif %} | |
{% endfor %} | |
], | |
// url_cities: [{path:"{{ path('stepcart_city_list') }}"}] // вместо этого... | |
url_cities: window.routes.url_cities // переписываем так | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment