fix: [tag collections] Fixed hook to reload galaxies

pull/3989/head
iglocska 2019-01-06 21:22:01 +01:00
parent c09992d2d9
commit 8d44c78f4f
2 changed files with 5 additions and 1 deletions

View File

@ -46,7 +46,7 @@ class AppController extends Controller
public $helpers = array('Utility', 'OrgImg');
private $__queryVersion = '50';
private $__queryVersion = '51';
public $pyMispVersion = '2.4.99';
public $phpmin = '5.6.5';
public $phprec = '7.0.16';

View File

@ -567,11 +567,13 @@ function quickSubmitTagForm(event_id, tag_id) {
},
success:function (data, textStatus) {
loadEventTags(event_id);
loadGalaxies(event_id, 'event');
handleGenericAjaxResponse(data);
},
error:function() {
showMessage('fail', 'Could not add tag.');
loadEventTags(event_id);
loadGalaxies(event_id, 'event');
},
complete:function() {
$("#popover_form").fadeOut();
@ -599,12 +601,14 @@ function quickSubmitAttributeTagForm(attribute_id, tag_id) {
updateIndex(0, 'event');
} else {
loadAttributeTags(attribute_id);
loadGalaxies(attribute_id, 'attribute');
}
handleGenericAjaxResponse(data);
},
error:function() {
showMessage('fail', 'Could not add tag.');
loadAttributeTags(attribute_id);
loadGalaxies(attribute_id, 'attribute');
},
complete:function() {
$("#popover_form").fadeOut();