From 1ebbd70dc68f1a8ddd254acbc6ab2f4b61ff36c7 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Dec 03 2018 13:54:32 +0000 Subject: Update the quick replies button when going into edit mode Fixes https://pagure.io/pagure/issue/4076 Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/static/quick_reply.js b/pagure/static/quick_reply.js index b310ee5..b272b7d 100644 --- a/pagure/static/quick_reply.js +++ b/pagure/static/quick_reply.js @@ -26,6 +26,10 @@ $(document).ready(function() { in_preview = !in_preview; update_button(); }); + $('#editinmarkdown').on('click', function () { + in_preview = !in_preview; + update_button(); + }); $('#comment').on('input propertychange', update_button); $('[data-toggle="tooltip"]').tooltip(); update_button();