mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-16 03:03:14 +00:00
Merge pull request #1289 from signalkraft/fix-filesize-format
Preventing thousands seperators when printing max filesize in JS
This commit is contained in:
commit
4d2258404b
2 changed files with 2 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -10,3 +10,4 @@
|
|||
/venv
|
||||
/node_modules/
|
||||
npm-debug.log
|
||||
/.idea
|
||||
|
|
|
|||
|
|
@ -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 }}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue