fix: [attribute search] Fixed invalid JS calls introduced as part of the rework (WiP)

pull/3890/head
iglocska 2018-11-04 22:54:29 +01:00
parent 493e7bbd36
commit 7ab8b0e90a
2 changed files with 12 additions and 10 deletions

View File

@ -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';

View File

@ -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){