Skip to content

Commit

Permalink
add relative path to ols-autocomplete js
Browse files Browse the repository at this point in the history
  • Loading branch information
anitacaron committed Feb 29, 2024
1 parent a9f5cb3 commit d2244df
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ontology/src/resources/ols_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
<script src="{{ page.root }}assets/ols-autocomplete.js"></script>
<script>
$("*[name='stressor']").first().attr("readonly", true);
//$("*[name='labelset']").first().attr("readonly", true);

// ONTOLOGY AUTOCOMPLETE
$("*[name='stressor_label']").first().attr({
"data-selectpath": "https://www.ebi.ac.uk/ols4/",
Expand Down Expand Up @@ -39,8 +37,9 @@
"placeholder": "Search for ontology entity",
});

var app = require("ols-autocomplete");
var app = require("../assets/ols-autocomplete.js");
var instance = new app();
console.log(instance)
options = {
action: function (relativePath, suggestion_ontology, type, iri, data) {
console.log("In overwritten function")
Expand Down

0 comments on commit d2244df

Please sign in to comment.