From 6630fa2f37713708f490f3bbf36ce31bbb8668e4 Mon Sep 17 00:00:00 2001 From: Naoki Takezoe Date: Thu, 22 Dec 2016 15:48:59 +0900 Subject: [PATCH] Fix file attachement bug --- .../gitbucket/core/helper/attached.scala.html | 2 +- .../twirl/gitbucket/core/wiki/edit.scala.html | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/main/twirl/gitbucket/core/helper/attached.scala.html b/src/main/twirl/gitbucket/core/helper/attached.scala.html index 02624f2a4..b8ac1330c 100644 --- a/src/main/twirl/gitbucket/core/helper/attached.scala.html +++ b/src/main/twirl/gitbucket/core/helper/attached.scala.html @@ -64,7 +64,7 @@ $(function(){ @dropzone(clickable: Boolean, textareaId: Option[String]) = { url: '@context.path/upload/file/@repository.owner/@repository.name', maxFilesize: 10, - clickable: false, + clickable: @clickable, acceptedFiles: @Html(FileUtil.mimeTypeWhiteList.mkString("'", ",", "'")), dictInvalidFileType: 'Unfortunately, we don\'t support that file type. Try again with a PNG, GIF, JPG, DOCX, PPTX, XLSX, TXT, or PDF.', previewTemplate: "
\n
Uploading your files...
\n
\n
", diff --git a/src/main/twirl/gitbucket/core/wiki/edit.scala.html b/src/main/twirl/gitbucket/core/wiki/edit.scala.html index 9a6bf085d..10ddf2f70 100644 --- a/src/main/twirl/gitbucket/core/wiki/edit.scala.html +++ b/src/main/twirl/gitbucket/core/wiki/edit.scala.html @@ -43,9 +43,22 @@ } } -