mirror of
https://github.com/e107inc/e107.git
synced 2025-04-15 10:02:02 +02:00
changed function call to support dynamically added content
This commit is contained in:
parent
0f5396fed8
commit
e8f2b144f0
@ -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'});
|
||||
}
|
||||
});
|
||||
});
|
||||
//});
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -37,7 +37,7 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
|
||||
e107.mediaManager.eMediaSelectFileNone(this);
|
||||
});
|
||||
});
|
||||
|
||||
/*
|
||||
$(context).find('.e-media-select').once('media-manager-e-media-select').each(function ()
|
||||
{
|
||||
$(this).on('click', function ()
|
||||
@ -45,8 +45,14 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
|
||||
e107.mediaManager.eMediaSelect(this);
|
||||
});
|
||||
});
|
||||
*/
|
||||
$(context).on('click', '.e-media-select', function ()
|
||||
{
|
||||
e107.mediaManager.eMediaSelect(this);
|
||||
});
|
||||
|
||||
// Must be defined after e-media-select.
|
||||
/*
|
||||
$(context).find('.e-dialog-save').once('media-manager-e-dialog-save').each(function ()
|
||||
{
|
||||
$(this).click(function ()
|
||||
@ -54,6 +60,12 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
|
||||
e107.mediaManager.eDialogSave(this);
|
||||
});
|
||||
});
|
||||
*/
|
||||
$(context).on('click', '.e-dialog-save', function ()
|
||||
{
|
||||
e107.mediaManager.eDialogSave(this);
|
||||
});
|
||||
|
||||
|
||||
// Must be defined after e-media-select.
|
||||
$(context).find('.e-media-nav').once('media-manager-e-media-nav').each(function ()
|
||||
|
Loading…
x
Reference in New Issue
Block a user