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:
@@ -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);
|
||||
|
@@ -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
|
||||
});
|
||||
});
|
||||
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user