mirror of https://github.com/MISP/MISP
fix: [attribute search] Fixed invalid JS calls introduced as part of the rework (WiP)
parent
493e7bbd36
commit
7ab8b0e90a
|
@ -46,7 +46,7 @@ class AppController extends Controller
|
|||
|
||||
public $helpers = array('Utility', 'OrgImg');
|
||||
|
||||
private $__queryVersion = '46';
|
||||
private $__queryVersion = '47';
|
||||
public $pyMispVersion = '2.4.96';
|
||||
public $phpmin = '5.6.5';
|
||||
public $phprec = '7.0.16';
|
||||
|
|
|
@ -3146,15 +3146,17 @@ function quickSubmitGalaxyForm(event_id, cluster_id) {
|
|||
|
||||
function checkAndSetPublishedInfo() {
|
||||
var id = $('#hiddenSideMenuData').data('event-id');
|
||||
$.get( "/events/checkPublishedStatus/" + id, function(data) {
|
||||
if (data == 1) {
|
||||
$('.published').removeClass('hidden');
|
||||
$('.not-published').addClass('hidden');
|
||||
} else {
|
||||
$('.published').addClass('hidden');
|
||||
$('.not-published').removeClass('hidden');
|
||||
}
|
||||
});
|
||||
if (id !== 'undefined') {
|
||||
$.get( "/events/checkPublishedStatus/" + id, function(data) {
|
||||
if (data == 1) {
|
||||
$('.published').removeClass('hidden');
|
||||
$('.not-published').addClass('hidden');
|
||||
} else {
|
||||
$('.published').addClass('hidden');
|
||||
$('.not-published').removeClass('hidden');
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
$(document).keyup(function(e){
|
||||
|
|
Loading…
Reference in New Issue