Fix for lazy load change

This commit is contained in:
Hillel Coren 2016-05-25 16:28:24 +03:00
parent c8794a401e
commit fc981c0604
2 changed files with 3 additions and 3 deletions

View File

@ -232,7 +232,7 @@
acceptedFiles:{!! json_encode(implode(',',\App\Models\Document::$allowedMimes)) !!}, acceptedFiles:{!! json_encode(implode(',',\App\Models\Document::$allowedMimes)) !!},
addRemoveLinks:true, addRemoveLinks:true,
@foreach(trans('texts.dropzone') as $key=>$text) @foreach(trans('texts.dropzone') as $key=>$text)
"dict{{strval($key)}}":"{{strval($text)}}", "dict{{strval($key)}}":"{{strval($text)}}",
@endforeach @endforeach
maxFileSize:{{floatval(MAX_DOCUMENT_SIZE/1000)}}, maxFileSize:{{floatval(MAX_DOCUMENT_SIZE/1000)}},
}); });

View File

@ -992,8 +992,8 @@
}, },
acceptedFiles:{!! json_encode(implode(',',\App\Models\Document::$allowedMimes)) !!}, acceptedFiles:{!! json_encode(implode(',',\App\Models\Document::$allowedMimes)) !!},
addRemoveLinks:true, addRemoveLinks:true,
@foreach(['default_message', 'fallback_message', 'fallback_text', 'file_too_big', 'invalid_file_type', 'response_error', 'cancel_upload', 'cancel_upload_confirmation', 'remove_file'] as $key) @foreach(trans('texts.dropzone') as $key=>$text)
"dict{{Utils::toClassCase($key)}}":"{{trans('texts.dropzone_'.$key)}}", "dict{{strval($key)}}":"{{strval($text)}}",
@endforeach @endforeach
maxFileSize:{{floatval(MAX_DOCUMENT_SIZE/1000)}}, maxFileSize:{{floatval(MAX_DOCUMENT_SIZE/1000)}},
}); });