js.common-component.js Maven / Gradle / Ivy
(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 || {}));
© 2015 - 2025 Weber Informatics LLC | Privacy Policy