mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Fix geonames amd loading
This commit is contained in:
@@ -506,7 +506,6 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" language="javascript" src="{{ path('minifier', { 'f' : 'assets/geonames-server-jquery-plugin/jquery.geonames.js,scripts/common/geonames.js' }) }}"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
function check_TOU(container)
|
||||
@@ -619,11 +618,17 @@
|
||||
dialog.Close();
|
||||
});
|
||||
|
||||
geonames.init($('#command_geoname_field'), {
|
||||
"server": "{{ app['geonames.server-uri'] }}",
|
||||
"limit": 40
|
||||
define([
|
||||
"common/geonames"
|
||||
], function (geonames) {
|
||||
geonames.init($('#command_geoname_field'), {
|
||||
"server": "{{ app['geonames.server-uri'] }}",
|
||||
"limit": 40
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
$('#download .download_button').bind('click',function(){
|
||||
if(!check_subdefs($('#download')))
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user