mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 21:12:15 +09:00
Issue 2443. Modal bug bugfix.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11556 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
cfe90618e3
commit
e2b79bb9fa
2 changed files with 32 additions and 28 deletions
|
|
@ -100,7 +100,7 @@ jQuery(function($){
|
||||||
contentBugFix();
|
contentBugFix();
|
||||||
});
|
});
|
||||||
// Multilingual
|
// Multilingual
|
||||||
var $mlCheck = $('.x .multilingual>label>input[type="checkbox"]');
|
/*var $mlCheck = $('.x .multilingual>label>input[type="checkbox"]');
|
||||||
function multilingual(){
|
function multilingual(){
|
||||||
$mlCheck.each(function(event){
|
$mlCheck.each(function(event){
|
||||||
var $this = $(this);
|
var $this = $(this);
|
||||||
|
|
@ -122,7 +122,8 @@ jQuery(function($){
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
multilingual();
|
multilingual();
|
||||||
$mlCheck.change(multilingual);
|
$mlCheck.change(multilingual);*/
|
||||||
|
// var $multilingual
|
||||||
// Check All
|
// Check All
|
||||||
$('.x th>input[type="checkbox"]')
|
$('.x th>input[type="checkbox"]')
|
||||||
.change(function() {
|
.change(function() {
|
||||||
|
|
@ -181,7 +182,6 @@ jQuery(function($){
|
||||||
jQuery(function($){
|
jQuery(function($){
|
||||||
|
|
||||||
var ESC = 27;
|
var ESC = 27;
|
||||||
|
|
||||||
$.fn.xeModalWindow = function(){
|
$.fn.xeModalWindow = function(){
|
||||||
this
|
this
|
||||||
.not('.xe-modal-window')
|
.not('.xe-modal-window')
|
||||||
|
|
@ -194,16 +194,6 @@ $.fn.xeModalWindow = function(){
|
||||||
|
|
||||||
// get and initialize modal window
|
// get and initialize modal window
|
||||||
$modal = $( $this.attr('href') );
|
$modal = $( $this.attr('href') );
|
||||||
if(!$modal.parent('body').length) {
|
|
||||||
$btnClose = $('<button type="button" class="x_close">×</button>');
|
|
||||||
$btnClose.click(function(){ $modal.data('anchor').trigger('close.mw') });
|
|
||||||
$modal.find('[data-hide]').click(function(){ $modal.data('anchor').trigger('close.mw') });
|
|
||||||
$('body').append('<div class="x_modal-backdrop"></div>').append($modal); // append background
|
|
||||||
$modal.prepend($btnClose); // prepend close button
|
|
||||||
}
|
|
||||||
|
|
||||||
// set the related anchor
|
|
||||||
$modal.data('anchor', $this);
|
|
||||||
|
|
||||||
if($modal.data('state') == 'showing') {
|
if($modal.data('state') == 'showing') {
|
||||||
$this.trigger('close.mw');
|
$this.trigger('close.mw');
|
||||||
|
|
@ -214,7 +204,19 @@ $.fn.xeModalWindow = function(){
|
||||||
return false;
|
return false;
|
||||||
})
|
})
|
||||||
.bind('open.mw', function(){
|
.bind('open.mw', function(){
|
||||||
var $this = $(this), before_event, $modal, duration;
|
var $this = $(this), $modal, $btnClose, disabled, before_event, duration;
|
||||||
|
|
||||||
|
$modal = $( $this.attr('href') );
|
||||||
|
if(!$modal.parent('body').length) {
|
||||||
|
$btnClose = $('<button type="button" class="x_close">×</button>');
|
||||||
|
$btnClose.click(function(){ $modal.data('anchor').trigger('close.mw') });
|
||||||
|
$modal.find('[data-hide]').click(function(){ $modal.data('anchor').trigger('close.mw') });
|
||||||
|
$('body').append('<div class="x_modal-backdrop"></div>').append($modal); // append background
|
||||||
|
$modal.prepend($btnClose); // prepend close button
|
||||||
|
}
|
||||||
|
|
||||||
|
// set the related anchor
|
||||||
|
$modal.data('anchor', $this);
|
||||||
|
|
||||||
// before event trigger
|
// before event trigger
|
||||||
before_event = $.Event('before-open.mw');
|
before_event = $.Event('before-open.mw');
|
||||||
|
|
|
||||||
30
modules/admin/tpl/js/admin.min.js
vendored
30
modules/admin/tpl/js/admin.min.js
vendored
|
|
@ -100,7 +100,7 @@ jQuery(function($){
|
||||||
contentBugFix();
|
contentBugFix();
|
||||||
});
|
});
|
||||||
// Multilingual
|
// Multilingual
|
||||||
var $mlCheck = $('.x .multilingual>label>input[type="checkbox"]');
|
/*var $mlCheck = $('.x .multilingual>label>input[type="checkbox"]');
|
||||||
function multilingual(){
|
function multilingual(){
|
||||||
$mlCheck.each(function(event){
|
$mlCheck.each(function(event){
|
||||||
var $this = $(this);
|
var $this = $(this);
|
||||||
|
|
@ -122,7 +122,8 @@ jQuery(function($){
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
multilingual();
|
multilingual();
|
||||||
$mlCheck.change(multilingual);
|
$mlCheck.change(multilingual);*/
|
||||||
|
// var $multilingual
|
||||||
// Check All
|
// Check All
|
||||||
$('.x th>input[type="checkbox"]')
|
$('.x th>input[type="checkbox"]')
|
||||||
.change(function() {
|
.change(function() {
|
||||||
|
|
@ -181,7 +182,6 @@ jQuery(function($){
|
||||||
jQuery(function($){
|
jQuery(function($){
|
||||||
|
|
||||||
var ESC = 27;
|
var ESC = 27;
|
||||||
|
|
||||||
$.fn.xeModalWindow = function(){
|
$.fn.xeModalWindow = function(){
|
||||||
this
|
this
|
||||||
.not('.xe-modal-window')
|
.not('.xe-modal-window')
|
||||||
|
|
@ -194,16 +194,6 @@ $.fn.xeModalWindow = function(){
|
||||||
|
|
||||||
// get and initialize modal window
|
// get and initialize modal window
|
||||||
$modal = $( $this.attr('href') );
|
$modal = $( $this.attr('href') );
|
||||||
if(!$modal.parent('body').length) {
|
|
||||||
$btnClose = $('<button type="button" class="x_close">×</button>');
|
|
||||||
$btnClose.click(function(){ $modal.data('anchor').trigger('close.mw') });
|
|
||||||
$modal.find('[data-hide]').click(function(){ $modal.data('anchor').trigger('close.mw') });
|
|
||||||
$('body').append('<div class="x_modal-backdrop"></div>').append($modal); // append background
|
|
||||||
$modal.prepend($btnClose); // prepend close button
|
|
||||||
}
|
|
||||||
|
|
||||||
// set the related anchor
|
|
||||||
$modal.data('anchor', $this);
|
|
||||||
|
|
||||||
if($modal.data('state') == 'showing') {
|
if($modal.data('state') == 'showing') {
|
||||||
$this.trigger('close.mw');
|
$this.trigger('close.mw');
|
||||||
|
|
@ -214,7 +204,19 @@ $.fn.xeModalWindow = function(){
|
||||||
return false;
|
return false;
|
||||||
})
|
})
|
||||||
.bind('open.mw', function(){
|
.bind('open.mw', function(){
|
||||||
var $this = $(this), before_event, $modal, duration;
|
var $this = $(this), $modal, $btnClose, disabled, before_event, duration;
|
||||||
|
|
||||||
|
$modal = $( $this.attr('href') );
|
||||||
|
if(!$modal.parent('body').length) {
|
||||||
|
$btnClose = $('<button type="button" class="x_close">×</button>');
|
||||||
|
$btnClose.click(function(){ $modal.data('anchor').trigger('close.mw') });
|
||||||
|
$modal.find('[data-hide]').click(function(){ $modal.data('anchor').trigger('close.mw') });
|
||||||
|
$('body').append('<div class="x_modal-backdrop"></div>').append($modal); // append background
|
||||||
|
$modal.prepend($btnClose); // prepend close button
|
||||||
|
}
|
||||||
|
|
||||||
|
// set the related anchor
|
||||||
|
$modal.data('anchor', $this);
|
||||||
|
|
||||||
// before event trigger
|
// before event trigger
|
||||||
before_event = $.Event('before-open.mw');
|
before_event = $.Event('before-open.mw');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue