1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 14:17:49 +02:00

More modal tweaks

This commit is contained in:
Cameron
2013-03-17 06:25:25 -07:00
parent bba822d5ce
commit fb3aadda65
5 changed files with 21 additions and 18 deletions

View File

@@ -49,12 +49,18 @@ $(document).ready(function()
$('#uiModal .modal-label').text('Loading...');
$('#uiModal .modal-body').html(' ');
});
$('a[data-toggle="modal"]').on('click', function()
{
var link = $(this).attr('href');
var caption = $(this).attr('data-modal-caption');
var height = ($(window).height() * 0.9) - 50;
$('#uiModal .modal-caption').text(caption);
$('.modal').height(height);
// $('#uiModal .modal-label').text('Loading...');
// $('#uiModal .modal-body').html(link);
// alert(caption);