mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Update templates to fit the new translator
This commit is contained in:
@@ -177,7 +177,7 @@ $(document).ready(function(){
|
||||
$.each(data.files, function(i, file) {
|
||||
{% set supported_file_types = ['png', 'jpg', 'gif']|join(' | ') %}
|
||||
if( ! /(\image|\/)(png|jpeg|jpg|pjpg|gif)$/i.test(file.type)) {
|
||||
alert("{% trans %} Invalid file type, only ({{ supported_file_types }}) file formats are supported {% endtrans %}");
|
||||
alert("{{ 'Invalid file type, only (%supported_file_types%) file formats are supported' | trans({'%supported_file_types%' : supported_file_types}) | e('js') }}");
|
||||
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user