js.common-component.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of molgenis-ontology Show documentation
Show all versions of molgenis-ontology Show documentation
Plugin module containing SORTA (system for ontology-based re-coding and technical
annotation)
plugins.
(function ($, molgenis) {
"use strict";
molgenis.createModalCallback = function (title, components) {
var modal = $('').addClass('modal');
var modalDialog = $('').addClass('modal-dialog');
var modalContent = $('').addClass('modal-content');
var header = $('').css('cursor', 'pointer');
header.addClass('modal-header');
header.append('');
header.append('' + title + '
');
var body = $('').append(components.body);
body.addClass('modal-body').css('overflow', 'none');
var footer = $('');
footer.addClass('modal-footer');
footer.append('');
footer.prepend(components.footer);
modalContent.append(header);
modalContent.append(body);
modalContent.append(footer);
modalDialog.append(modalContent).appendTo(modal);
return modal;
};
}($, window.top.molgenis = window.top.molgenis || {}));