mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
Minor fix. Modal window '.x_modal-backdrop' duplicated issue.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11672 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
94d216fe21
commit
8f6a6c28c6
2 changed files with 8 additions and 20 deletions
|
|
@ -187,9 +187,6 @@ $.fn.xeModalWindow = function(){
|
|||
// set state : showing
|
||||
$modal.data('state', 'showing');
|
||||
|
||||
// workaroud for IE6
|
||||
$('html,body').addClass('modalContainer');
|
||||
|
||||
// after event trigger
|
||||
function after(){ $this.trigger('after-open.mw') };
|
||||
|
||||
|
|
@ -202,8 +199,8 @@ $.fn.xeModalWindow = function(){
|
|||
|
||||
$modal
|
||||
.fadeIn(duration, after)
|
||||
.find('button.x_close:first').focus();
|
||||
$('.x_modal-backdrop').show();
|
||||
.find('button.x_close:first').focus().end()
|
||||
.prev('.x_modal-backdrop').show();
|
||||
})
|
||||
.bind('close.mw', function(){
|
||||
var $this = $(this), before_event, $modal, duration;
|
||||
|
|
@ -224,14 +221,11 @@ $.fn.xeModalWindow = function(){
|
|||
// set state : hiding
|
||||
$modal.data('state', 'hiding');
|
||||
|
||||
// workaroud for IE6
|
||||
$('html,body').removeClass('modalContainer');
|
||||
|
||||
// after event trigger
|
||||
function after(){ $this.trigger('after-close.mw') };
|
||||
|
||||
$modal.fadeOut(duration, after);
|
||||
$('.x_modal-backdrop').hide();
|
||||
$modal.fadeOut(duration, after)
|
||||
.prev('.x_modal-backdrop').hide();
|
||||
$this.focus();
|
||||
});
|
||||
$('div.x_modal').addClass('x').hide();
|
||||
|
|
|
|||
14
modules/admin/tpl/js/admin.min.js
vendored
14
modules/admin/tpl/js/admin.min.js
vendored
|
|
@ -187,9 +187,6 @@ $.fn.xeModalWindow = function(){
|
|||
// set state : showing
|
||||
$modal.data('state', 'showing');
|
||||
|
||||
// workaroud for IE6
|
||||
$('html,body').addClass('modalContainer');
|
||||
|
||||
// after event trigger
|
||||
function after(){ $this.trigger('after-open.mw') };
|
||||
|
||||
|
|
@ -202,8 +199,8 @@ $.fn.xeModalWindow = function(){
|
|||
|
||||
$modal
|
||||
.fadeIn(duration, after)
|
||||
.find('button.x_close:first').focus();
|
||||
$('.x_modal-backdrop').show();
|
||||
.find('button.x_close:first').focus().end()
|
||||
.prev('.x_modal-backdrop').show();
|
||||
})
|
||||
.bind('close.mw', function(){
|
||||
var $this = $(this), before_event, $modal, duration;
|
||||
|
|
@ -224,14 +221,11 @@ $.fn.xeModalWindow = function(){
|
|||
// set state : hiding
|
||||
$modal.data('state', 'hiding');
|
||||
|
||||
// workaroud for IE6
|
||||
$('html,body').removeClass('modalContainer');
|
||||
|
||||
// after event trigger
|
||||
function after(){ $this.trigger('after-close.mw') };
|
||||
|
||||
$modal.fadeOut(duration, after);
|
||||
$('.x_modal-backdrop').hide();
|
||||
$modal.fadeOut(duration, after)
|
||||
.prev('.x_modal-backdrop').hide();
|
||||
$this.focus();
|
||||
});
|
||||
$('div.x_modal').addClass('x').hide();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue