Issue 2929: r12743`s bug(support nested modal window)

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12747 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
chschy 2013-02-13 07:59:22 +00:00
parent 172f48156c
commit 5856ab444d
2 changed files with 3 additions and 2 deletions

View file

@ -366,6 +366,7 @@ jQuery(function($){
$btnClose = $('<button type="button" class="x_close">&times;</button>');
$btnClose.click(function(){ $modal.data('anchor').trigger('close.mw') });
$modal.find('[data-hide]').click(function(){ $modal.data('anchor').trigger('close.mw') });
$('body').append($modal);
$modal.prepend($btnClose); // prepend close button
}