fixes bug with comment actions dropdown [fixes SCI-1938]

This commit is contained in:
zmagod 2018-01-17 12:54:21 +01:00
parent 016ead607e
commit 5371f5a139

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',