1
0
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:
Achim Ennenbach
2018-07-27 21:12:08 +02:00
parent 0f5396fed8
commit e8f2b144f0
2 changed files with 18 additions and 5 deletions

View File

@@ -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'});
}
});
});
//});
}
};