The Gitlab instance will be restarted on Monday April 28th at 2AM. There will be a short interruption of service.

Skip to content
Snippets Groups Projects
Commit 22f63ca0 authored by Chris Hallberg's avatar Chris Hallberg
Browse files

Add tab lightbox.

parent 0e5c8b39
No related merge requests found
......@@ -10,6 +10,12 @@ var modalXHR; // Used for current in-progress XHR lightbox request
// Cart actions based on submission
// Change the content of the lightbox
function changeModalContent(html) {
var header = $('#modal .modal-header')
if(header.find('h3').html().length == 0) {
header.css('border-bottom-width', '0');
} else {
header.css('border-bottom-width', '1px');
}
$('#modal .modal-body').html(html).modal({'show':true,'backdrop':false});
}
// Close the lightbox and run update functions
......@@ -21,6 +27,7 @@ function closeLightbox() {
$('#modal').modal('hide');
// Reset content
$('#modal').removeData('modal');
$('#modal').find('.modal-header h3').html('');
$('#modal').find('.modal-body').html(vufindString.loading + "...");
// Perform checks to update the page
if(checkSaveStatuses) {
......@@ -360,6 +367,11 @@ $(document).ready(function() {
$('#loginOptions a').click(function() {
return getLightbox('MyResearch','Login',{},{'loggingin':true});
});
// Tag lightbox
$('#tagRecord').click(function() {
var id = $('.hiddenId')[0].value;
return getLightbox('Record', 'AddTag', {id:id});
});
// Modal title
$('.modal-link,.help-link').click(function() {
$('#modal .modal-header h3').html($(this).attr('title'));
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment