From 148bdaec5aaf66b885d7070894b81dfd76df2d5c Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 15 Dec 2017 11:24:00 +0100 Subject: delete files --- public/assets/js/lib/views/details/commentform.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'public/assets/js/lib/views/details/commentform.js') diff --git a/public/assets/js/lib/views/details/commentform.js b/public/assets/js/lib/views/details/commentform.js index e30193d..a14caa3 100644 --- a/public/assets/js/lib/views/details/commentform.js +++ b/public/assets/js/lib/views/details/commentform.js @@ -4,7 +4,7 @@ var CommentForm = FormView.extend({ events: { "focus textarea": 'focus', - "focus input[type=file]": 'focus', + "mouseup input[type=file]": 'focus', }, action: "", @@ -24,6 +24,7 @@ var CommentForm = FormView.extend({ focus: function(){ this.$el.addClass('focused') + $("[name=comment]").prop("required", false) }, validate: function(){ -- cgit v1.2.3-70-g09d2