Merge pull request #944 from ZmagoD/zd_SCI_1938

fixes bug with comment actions dropdown [fixes SCI-1938]
This commit is contained in:
Zmago Devetak 2018-01-17 13:42:36 +01:00 committed by GitHub
commit b9e56c49ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -289,6 +289,11 @@ var Comments = (function() {
$(parent).unbind('click').on('click', '[data-action=edit-comment]', function() {
var $this = $(this);
// close dropdown on click
var dropdown = $($this.parents(".dropdown-comment.open").get(0));
if(dropdown.length) { // safety first
dropdown.removeClass('open');
}
$.ajax({
url: $this.attr('data-url'),
type: 'GET',