mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-06 21:24:23 +08:00
fixes bug with comment actions dropdown [fixes SCI-1938]
This commit is contained in:
parent
016ead607e
commit
5371f5a139
1 changed files with 5 additions and 0 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Reference in a new issue