diff options
author | Joakim Reinert <mail@jreinert.com> | 2015-05-01 22:30:12 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2015-05-05 12:21:27 +0200 |
commit | b7d501a42b2245ef1fc33171f9b53565e176c648 (patch) | |
tree | d6f575cfbc0e5c642c54e445fe15314b6d584bfc /application/views/header.php | |
parent | da835670f796774d1f98c05dfdf7da1c7ba2655a (diff) |
Refactor file uploader js
Diffstat (limited to 'application/views/header.php')
-rw-r--r-- | application/views/header.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/application/views/header.php b/application/views/header.php index 89a3c8617..f77487ba9 100644 --- a/application/views/header.php +++ b/application/views/header.php @@ -29,7 +29,10 @@ if (is_cli_client() && !isset($force_full_html)) { <script type="text/javascript"> /* <![CDATA[ */ var require = { baseUrl: '/data/js' }; - window.appConfig = {}; + window.appConfig = { + maxUploadSize: <?php echo $max_upload_size; ?>, + maxFilesPerUpload: <?php echo ini_get("max_file_uploads"); ?> + }; /* ]]> */ </script> <script data-main="main" src="/data/js/vendor/require.js"></script> |