mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-20 07:04:06 +09:00
Update 1.2.2
This commit is contained in:
@@ -750,4 +750,36 @@ function um_modal_size( aclass ) {
|
||||
|
||||
function um_modal_add_attr( id, value ) {
|
||||
jQuery('.um-modal:visible').data( id, value );
|
||||
}
|
||||
|
||||
function prepare_Modal() {
|
||||
if ( jQuery('.um-popup-overlay').length == 0 ) {
|
||||
jQuery('body').append('<div class="um-popup-overlay"></div>');
|
||||
jQuery('body').append('<div class="um-popup"></div>');
|
||||
jQuery('.um-popup').addClass('loading');
|
||||
}
|
||||
}
|
||||
|
||||
function remove_Modal() {
|
||||
if ( jQuery('.um-popup-overlay').length ) {
|
||||
jQuery('.um-popup').empty().remove();
|
||||
jQuery('.um-popup-overlay').empty().remove();
|
||||
}
|
||||
}
|
||||
|
||||
function show_Modal( contents ) {
|
||||
if ( jQuery('.um-popup-overlay').length ) {
|
||||
jQuery('.um-popup').removeClass('loading').html( contents );
|
||||
jQuery('.um-popup').mCustomScrollbar({
|
||||
theme:"dark-3"
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function responsive_Modal() {
|
||||
if ( jQuery('.um-popup-overlay').length ) {
|
||||
jQuery('.um-popup').css({
|
||||
'max-height': ( 80 / 100 ) * jQuery(window).height() + 'px'
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,9 @@
|
||||
jQuery(document).ready(function() {
|
||||
|
||||
jQuery(document).on('click', '.um-popup-overlay', function(){
|
||||
remove_Modal();
|
||||
});
|
||||
|
||||
jQuery(document).on('click', '.um-modal-overlay, a[data-action="um_remove_modal"]', function(){
|
||||
um_remove_modal();
|
||||
});
|
||||
|
||||
@@ -30,7 +30,7 @@ jQuery(document).ready(function() {
|
||||
jQuery('.um-tip-e').tipsy({gravity: 'e', opacity: 1, live: 'a.live', offset: 3 });
|
||||
jQuery('.um-tip-s').tipsy({gravity: 's', opacity: 1, live: 'a.live', offset: 3 });
|
||||
|
||||
jQuery('.um-field input[type=radio]').change(function(){
|
||||
jQuery(document).on('change', '.um-field input[type=radio]', function(){
|
||||
var field = jQuery(this).parents('.um-field');
|
||||
var this_field = jQuery(this).parents('label');
|
||||
field.find('.um-field-radio').removeClass('active');
|
||||
@@ -39,7 +39,7 @@ jQuery(document).ready(function() {
|
||||
this_field.find('i').removeClass().addClass('um-icon-android-radio-button-on');
|
||||
});
|
||||
|
||||
jQuery('.um-field input[type=checkbox]').change(function(){
|
||||
jQuery(document).on('change', '.um-field input[type=checkbox]', function(){
|
||||
|
||||
var field = jQuery(this).parents('.um-field');
|
||||
var this_field = jQuery(this).parents('label');
|
||||
|
||||
File diff suppressed because one or more lines are too long
Vendored
+10
-2
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user