Skip to content

Commit

Permalink
schemas are on current site, not rest api
Browse files Browse the repository at this point in the history
  • Loading branch information
dsschult committed Oct 15, 2024
1 parent 6a6238e commit 65d5a6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions iceprod/website/data/www_templates/submit.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@ <h4>$(task)</h4>
<script type="text/javascript" src="/static/rest.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ajv/8.17.1/ajv2020.bundle.min.js" integrity="sha512-mXlpzWzZB+t4DFFezQkpSiCbT8aW12t688aLsd6KGNbRWDOdCur5C6Fl0rDl75VruBy42GvWsd6F35VQcs3lwQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script type="text/javascript">
var rest_api = '{{ rest_api }}';
var passkey = '{{ passkey }}';
const rest_api = '{{ rest_api }}';
const passkey = '{{ passkey }}';
var orig_config = {{ json_encode(config) }};
var edit = {{ json_encode(edit) }};
var dataset_id = '{{ dataset_id }}';

async function validator(config) {
try {
const ret = await fetch(rest_api + '/schemas/dataset.schema.json');
const ret = await fetch('/schemas/dataset.schema.json');
if (!response.ok) {
throw new Error('Response status: '+response.status);
}
Expand Down

0 comments on commit 65d5a6e

Please sign in to comment.