mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 21:27:25 +02:00
changed function call to support dynamically added content
This commit is contained in:
@@ -295,9 +295,10 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
|
||||
e107.behaviors.eDialogClose = {
|
||||
attach: function (context, settings)
|
||||
{
|
||||
$(context).find('.e-dialog-close').once('e-dialog-close').each(function ()
|
||||
{
|
||||
$(this).click(function ()
|
||||
//$(context).find('.e-dialog-close').once('e-dialog-close').each(function ()
|
||||
//{
|
||||
// $(this).click(function ()
|
||||
$(context).on('click', '.e-dialog-close', function()
|
||||
{
|
||||
var $modal = $('.modal');
|
||||
var $parentModal = parent.$('.modal');
|
||||
@@ -318,7 +319,7 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
|
||||
$parentDismiss.trigger({type: 'click'});
|
||||
}
|
||||
});
|
||||
});
|
||||
//});
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user