Merge branch 'release/1.6.4'

This commit is contained in:
Andy Miller
2017-10-11 14:45:29 -06:00
5 changed files with 13 additions and 5 deletions

View File

@@ -1,3 +1,11 @@
# v1.6.4
## 10/11/2017
1. [](#improved)
* Use system PHP size for upload limit rather than `system.media.upload_limit` or `file.filesize` plugin options
1. [](#bugfix)
* Fixed Dropzone timeout to address slow internet connections [#1239](https://github.com/getgrav/grav-plugin-admin/pull/1239)
# v1.6.3
## 10/02/2017

View File

@@ -1,5 +1,5 @@
name: Admin Panel
version: 1.6.3
version: 1.6.4
description: Adds an advanced administration panel to manage your site
icon: empire
author:
@@ -13,7 +13,7 @@ docs: https://github.com/getgrav/grav-plugin-admin/blob/develop/README.md
license: MIT
dependencies:
- { name: grav, version: '>=1.3.3' }
- { name: grav, version: '>=1.3.5' }
- { name: form, version: '>=2.9.0' }
- { name: email, version: '~2.0' }
- { name: login, version: '>=2.4.0' }

View File

@@ -46,7 +46,7 @@ Dropzone.confirm = (question, accepted, rejected) => {
};
const DropzoneMediaConfig = {
createImageThumbnails: { },
timeout: 0,
thumbnailWidth: 200,
thumbnailHeight: 150,
addRemoveLinks: false,

File diff suppressed because one or more lines are too long

View File

@@ -59,7 +59,7 @@
{% set page_can_upload = exists or (type == 'page' and not exists and not (field.destination starts with '@self' or field.destination starts with 'self@')) %}
{% if type is not defined or page_can_upload %}
{% set settings = {name: field.name, paramName: (scope ~ field.name)|fieldName ~ (files.multiple ? '[]' : ''), limit: limit, filesize: files.filesize, accept: files.accept} %}
{% set settings = {name: field.name, paramName: (scope ~ field.name)|fieldName ~ (files.multiple ? '[]' : ''), limit: limit, filesize: (config.system.media.upload_limit / 1024 / 1024), accept: files.accept} %}
<div class="form-input-wrapper dropzone files-upload {% if field.fancy is not same as(false) %}form-input-file{% endif %} {{ field.size|default('xlarge') }}" data-grav-file-settings="{{ settings|json_encode|e('html_attr') }}" {% if file_url_add %}data-file-url-add="{{ file_url_add }}"{% endif %} {% if file_url_remove %}data-file-url-remove="{{ file_url_remove }}"{% endif %}>
<input