Update 1.2.2

This commit is contained in:
ultimatemember
2015-04-15 16:59:27 +02:00
parent 5e281fbeaf
commit 7b9b59ea8d
32 changed files with 1375 additions and 135 deletions
+32
View File
@@ -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'
});
}
}
+4
View File
@@ -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();
});
+2 -2
View File
@@ -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
+10 -2
View File
File diff suppressed because one or more lines are too long