Skip to content

Commit

Permalink
Fix positioning of javascript for #62 in toolkit.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ylvion committed Apr 8, 2022
1 parent 3799710 commit d16eccc
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/main/resources/static/js/toolkit.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,20 @@ function triggerGraphSelect(element) {
});
}

function triggerGraphShow(element) {
if ($('#graphIdInput')[0].value === '') return;
$('.xapi-graph-content').each(function () {
setInvisible(this);
setNonReqiured(this);
unsetName(this);
});
$('#graphContentInput-' + element.value).each(function () {
setVisible(this);
setReqiured(this);
setName(this, 'graphContent');
});
}

function adaptDataset(element) {
var openButton = element.querySelector('#openModal')
openButton.dataset.bsVisName = element.dataset.vname;
Expand All @@ -156,20 +170,6 @@ function adaptModal(element) {
})
}

function triggerGraphShow(element) {
if ($('#graphIdInput')[0].value === '') return;
$('.xapi-graph-content').each(function () {
setInvisible(this);
setNonReqiured(this);
unsetName(this);
});
$('#graphContentInput-' + element.value).each(function () {
setVisible(this);
setReqiured(this);
setName(this, 'graphContent');
});
}

function replaceSvgVis(element) {
fetch('/api/v1/dave/visualisation' + '?flow=' + element.dataset.did
+ '&activityURL=' + element.dataset.aid
Expand Down

0 comments on commit d16eccc

Please sign in to comment.