diff --git a/public/js/jQuery-File-Upload-10.1.0/js/jquery.fileupload-ui.js b/public/js/jQuery-File-Upload-10.1.0/js/jquery.fileupload-ui.js index 4135345..a1b2326 100644 --- a/public/js/jQuery-File-Upload-10.1.0/js/jquery.fileupload-ui.js +++ b/public/js/jQuery-File-Upload-10.1.0/js/jquery.fileupload-ui.js @@ -182,7 +182,7 @@ deferred; if (data.context) { data.context.each(function(index) { - var file = files[index] || { error: 'Empty file upload result' }; + var file = files[index]; deferred = that._addFinishedDeferreds(); that._transition($(this)).done(function() { var node = $(this); diff --git a/src/Form/ComposeType.php b/src/Form/ComposeType.php index 096164b..352cbee 100644 --- a/src/Form/ComposeType.php +++ b/src/Form/ComposeType.php @@ -13,6 +13,7 @@ use App\SocialEntity\Compose; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\Extension\Core\Type\CollectionType; use Symfony\Component\Form\Extension\Core\Type\FileType; +use Symfony\Component\Form\Extension\Core\Type\TextareaType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\HttpFoundation\File\File; use Symfony\Component\OptionsResolver\OptionsResolver; @@ -33,7 +34,7 @@ class ComposeType extends AbstractType { { $builder->add('content_warning'); - $builder->add('content'); + $builder->add('content', TextareaType::class); $builder->add('visibility', ChoiceType::class, [ 'choices' => [ diff --git a/templates/fediplan/schedule.html.twig b/templates/fediplan/schedule.html.twig index a56666b..4a07e08 100644 --- a/templates/fediplan/schedule.html.twig +++ b/templates/fediplan/schedule.html.twig @@ -41,6 +41,13 @@ +