1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 09:34:54 +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);

View File

@@ -405,7 +405,9 @@ $(document).ready(function()
$(".e-dialog-close").live("click", function(){
parent.$.colorbox.close()
parent.$('.modal').modal('hide');
// parent.$.colorbox.close()
});
@@ -430,16 +432,10 @@ $(document).ready(function()
return false;
});
*/
$(".e-dialog-close").click(function () {
parent.$.colorbox.close()
});
// Modal Box - uses inline hidden content
/*
$(".e-modal").click(function () {
var id = $(this).attr("href");
$(id).dialog({
@@ -449,7 +445,7 @@ $(document).ready(function()
modal: true
});
});
*/