From 5e6d4ad27c4795955f57a6d67179587383e22110 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Calvi=C3=B1o=20S=C3=A1nchez?= Date: Fri, 24 Nov 2017 13:04:59 +0100 Subject: [PATCH] Disable elements while a comment is being deleted MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When a comment is being deleted the "disabled" class is added to the comment div, which causes it to look disabled. However, the input elements and the content editable div were not truly disabled, and thus it was still possible to interact with them. This commit ensures that they are properly disabled while the comment is being deleted. Signed-off-by: Daniel Calviño Sánchez --- apps/comments/css/comments.css | 4 ++-- apps/comments/js/commentstabview.js | Bin 21564 -> 21947 bytes 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/comments/css/comments.css b/apps/comments/css/comments.css index 1ed418df2f..6b0452da1f 100644 --- a/apps/comments/css/comments.css +++ b/apps/comments/css/comments.css @@ -35,8 +35,8 @@ border: none; opacity: .3; } -#commentsTabView .newCommentForm .submit:hover, -#commentsTabView .newCommentForm .submit:focus { +#commentsTabView .newCommentForm .submit:not(:disabled):hover, +#commentsTabView .newCommentForm .submit:not(:disabled):focus { opacity: 1; } diff --git a/apps/comments/js/commentstabview.js b/apps/comments/js/commentstabview.js index 7398a709421d5680263ca6ef9e6ec15f37a1fef3..0d2d0b0b81fb948c4c68795e0e6e0aaffd84a052 100644 GIT binary patch delta 253 zcmdn9f^qk1#trkFCQtN~U{B7^%}vcKne1mRCRUbMq@Yq0p6PR&7*(o4(COVLo*gGi`rT2GGlk_76@D*+mrnvz+Pn3R*MuA`8am{XjpY0bsS z$q6-oa;}#w8$=t3IeD>@<77b|k;!i@_$ISDUzwcXCE|@~PDxQI)EKxydId%K1sdup YnZ+QxQcx`es)E|F(qC@#b>~z80GZ)cN&o-= delta 38 wcmV+>0NMY$s{y>I0kEDzlax6ZlgLC5lP63dlY|TtlkGSTlLbW7vsguA5IT4d7XSbN