mirror of https://github.com/MISP/MISP
fix: [eventReports:markdownEditor] Force close the popover if parent
element not foundpull/6412/head
parent
fcca50bf05
commit
a8c7503b52
|
@ -845,7 +845,11 @@ function closeThePopover(closeButton) {
|
|||
var scope = $(closeButton).data('scope')
|
||||
var elementID = $(closeButton).data('elementid')
|
||||
var $MISPElement = $('[data-scope="' + scope + '"][data-elementid="' + elementID.replaceAll('\"', '\\\"') + '"]')
|
||||
$MISPElement.popover('hide');
|
||||
if ($MISPElement) {
|
||||
$MISPElement.popover('hide');
|
||||
} else {
|
||||
$(closeButton).closest('.popover').remove()
|
||||
}
|
||||
}
|
||||
|
||||
function constructAttributeRow(attribute, fromObject)
|
||||
|
|
Loading…
Reference in New Issue