mirror of https://github.com/MISP/MISP
fix: [UI] Multi select and deletion of events fixed, #5046
parent
82f53d9a09
commit
e4708c0b6c
|
@ -2320,8 +2320,6 @@ class EventsController extends AppController
|
|||
throw new NotFoundException(__('Invalid event'));
|
||||
}
|
||||
$id = $temp['Event']['id'];
|
||||
} elseif (!is_numeric($id)) {
|
||||
throw new NotFoundException(__('Invalid event'));
|
||||
}
|
||||
if ($this->request->is('post') || $this->request->is('put') || $this->request->is('delete')) {
|
||||
if (isset($this->request->data['id'])) {
|
||||
|
|
|
@ -1619,14 +1619,10 @@ function getPopup(id, context, target, admin, popupType) {
|
|||
$(popupType).html(data);
|
||||
openPopup(popupType, false);
|
||||
},
|
||||
error:function(xhr) {
|
||||
error:function() {
|
||||
$(".loading").hide();
|
||||
$("#gray_out").fadeOut();
|
||||
if (xhr.status === 403) {
|
||||
showMessage('fail', 'Not allowed.');
|
||||
} else {
|
||||
showMessage('fail', 'Something went wrong - the queried function returned an exception. Contact your administrator for further details (the exception has been logged).');
|
||||
}
|
||||
showMessage('fail', 'Something went wrong - the queried function returned an exception. Contact your administrator for further details (the exception has been logged).');
|
||||
},
|
||||
url: url
|
||||
});
|
||||
|
@ -3491,8 +3487,10 @@ function attributeHoverPlacement(element) {
|
|||
$('body').on('click', function (e) {
|
||||
$('[data-toggle=popover]').each(function () {
|
||||
// hide any open popovers when the anywhere else in the body is clicked
|
||||
if (!$(this).is(e.target) && $(this).has(e.target).length === 0 && $('.popover').has(e.target).length === 0) {
|
||||
$('#' + currentPopover).popover('destroy');
|
||||
if (typeof currentPopover !== 'undefined') {
|
||||
if (!$(this).is(e.target) && $(this).has(e.target).length === 0 && $('.popover').has(e.target).length === 0) {
|
||||
$('#' + currentPopover).popover('destroy');
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue