#4018 Fix active classes on Markdown preview tabs
Merged by pingou. Opened by cipherboy.
cipherboy/pagure fix-active-labels  into  master

Download 4018.patch

When in editing mode, clicking the "edit" tab above the text box causes
the editor to toggle the classes without checking whether or not the
editor is already in edit mode. This fixes that by using add/removeClass
instead of toggleClass.

Fixes: #3991

Signed-off-by: Alexander Scheel <ascheel@redhat.com>

Note that this was manually tested but as I'm not sure how to build Pagure, I wasn't able to verify it myself. I'm also not sure if there's more places this occurs with other IDs than #editinmarkdown.

Works fine for me, thanks for this! :)

Pull-Request has been merged by pingou

Metadata