Skip to content
Snippets Groups Projects
Commit 202ebf3a authored by Thorge Petersen's avatar Thorge Petersen Committed by Jesper Zedlitz
Browse files

Resolve "Schlagworte auf Basis des Musterdatenkatalogs vergeben"

parent 8a2db474
No related branches found
No related tags found
2 merge requests!17Stage System soll in Zukunft Master Branch erhalten,!15Resolve "Schlagworte auf Basis des Musterdatenkatalogs vergeben"
$(document).ready(function ()
{
window.fieldTags = $("#field-tags").val();
$('#reference').on('change', function(e) {
const select = e.target;
const selectedOption = select.options[select.selectedIndex];
const tag = selectedOption.innerHTML.trim();
if(tag !== "Musterdatensatz wählen..") {
var tags = tag.split(' - ').join(',');
$("#field-tags").val(function() {
return window.fieldTags + `,${tags}`;
})
}
});
});
{% import 'macros/form.html' as form %}
{% resource 'odsh/odsh_form.js' %}
{% resource 'odsh/odsh_populate_tags.js' %}
{% resource 'odsh/bootstrap-multiselect.js' %}
{% set dataset_is_draft = data.get('state', 'draft').startswith('draft') or data.get('state', 'none') == 'none' %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment