preventing thousands seperators when printing max filesize in JS

pull/1289/head
Philipp Dörner 2015-05-11 20:45:27 +02:00
rodzic 9d352dfe2c
commit 60e629d9e5
2 zmienionych plików z 2 dodań i 1 usunięć

1
.gitignore vendored
Wyświetl plik

@ -10,3 +10,4 @@
/venv
/node_modules/
npm-debug.log
/.idea

Wyświetl plik

@ -74,7 +74,7 @@
window.fileupload_opts = {
simple_upload_url: "{% url 'wagtailimages_add_image' %}",
accepted_file_types: /\.({{ allowed_extensions|join:"|" }})$/i, //must be regex
max_file_size: {{ max_filesize|default:"null" }}, //numeric format
max_file_size: {{ max_filesize|stringformat:"s"|default:"null" }}, //numeric format
errormessages: {
max_file_size: "{{ error_max_file_size }}",
accepted_file_types: "{{ error_accepted_file_types }}"