PLAT#54333 Foto's komen niet aan in Plato (gemaakt via de mobiele versie)
svn path=/Website/branches/v2018.2/; revision=40023
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
*/
|
||||
|
||||
function addFile(inputEl, file, eagerUpload) {
|
||||
var flexval = $(inputEl).attr("flexval") || false;
|
||||
var attachmentsFields = $(inputEl).closest('.attachments_form').find('.attachments_fields');
|
||||
var addAttachment = $(inputEl).closest('.attachments_form').find('.add_attachment');
|
||||
var maxFiles = ($(inputEl).attr('multiple') == 'multiple' ? 10 : 1);
|
||||
@@ -24,6 +25,11 @@ function addFile(inputEl, file, eagerUpload) {
|
||||
var param = $(inputEl).data('param');
|
||||
if (!param) {param = 'attachments'};
|
||||
|
||||
if (flexval) {
|
||||
fileSpan.append(
|
||||
$('<input>', { type: 'hidden', 'class': 'icon icon-attachment filename readonly', name: flexval, readonly: 'readonly'} ).val(file.name),
|
||||
);
|
||||
}
|
||||
fileSpan.append(
|
||||
$('<input>', { type: 'text', 'class': 'icon icon-attachment filename readonly', name: param +'[' + attachmentId + '][filename]', readonly: 'readonly'} ).val(file.name),
|
||||
$('<input>', { type: 'hidden', 'class': 'token', name: param + '[' + attachmentId + '][token]'} ),
|
||||
|
||||
Reference in New Issue
Block a user