From b8259ef32c861e483d6c6beef4d5f8f2dc475bdf Mon Sep 17 00:00:00 2001 From: Juuso Lapinlampi Date: Tue, 27 Oct 2015 14:57:13 +0000 Subject: Revert default max-file-size from 120MiB to 10MiB ewhal@ didn't understand how changing the maximum file size works, so he edited the JavaScript code directly to set the default to his desired 120MiB. For all clones, this may not be viable and it's not a sane default in my opinion. This doesn't change the fact that the maximum file size remains to be what it's configured in the configuration (Gruntfile.js). This bug was introduced in commit ec0154b, and potentially others. Vague OK from ewhal@ many weeks ago. --- js/pomf.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/pomf.js b/js/pomf.js index 0d71dbf..baaac46 100644 --- a/js/pomf.js +++ b/js/pomf.js @@ -59,7 +59,7 @@ $(function() { }); var MAX_SIZE = (function(node) { - var max = node.attr('data-max-size') || '120MiB'; + var max = node.attr('data-max-size') || '10MiB'; var num = parseInt(/([0-9,]+).*/.exec(max)[1].replace(',', ''), 10); var unit = /(?:([KMGTPEZY])(i)?B|([BKMGTPEZY]))/.exec(max) || ['B', '', '']; -- cgit v1.2.3