diff --git a/assets/js/um-members.js b/assets/js/um-members.js index e6cb0026..19b94f03 100644 --- a/assets/js/um-members.js +++ b/assets/js/um-members.js @@ -249,6 +249,8 @@ function um_build_template( directory, data ) { jQuery( document ).trigger( "um_build_template", [ directory, data ] ); jQuery( window ).trigger( "resize" ); + + init_tipsy(); } diff --git a/assets/js/um-scripts.js b/assets/js/um-scripts.js index c920b0cf..85658e84 100644 --- a/assets/js/um-scripts.js +++ b/assets/js/um-scripts.js @@ -77,6 +77,17 @@ function um_init_datetimepicker() { }); } + + +function init_tipsy() { + if( typeof(jQuery.fn.tipsy) === "function" ){ + jQuery('.um-tip-n').tipsy({gravity: 'n', opacity: 1, live: 'a.live', offset: 3 }); + jQuery('.um-tip-w').tipsy({gravity: 'w', opacity: 1, live: 'a.live', offset: 3 }); + 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(document).ready(function() { jQuery( document.body ).on('click', '.um-dropdown a.real_url', function(e){ @@ -129,13 +140,8 @@ jQuery(document).ready(function() { minimumResultsForSearch: -1 }); } - - if( typeof(jQuery.fn.tipsy) === "function" ){ - jQuery('.um-tip-n').tipsy({gravity: 'n', opacity: 1, live: 'a.live', offset: 3 }); - jQuery('.um-tip-w').tipsy({gravity: 'w', opacity: 1, live: 'a.live', offset: 3 }); - 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 }); - } + + init_tipsy(); if( typeof(jQuery.fn.um_raty) === "function" ){ jQuery('.um-rating').um_raty({ diff --git a/templates/members.php b/templates/members.php index fbf19b99..4d7aa79b 100644 --- a/templates/members.php +++ b/templates/members.php @@ -196,7 +196,11 @@ UM()->get_template( 'members-pagination.php', '', $args, true ); ?> <# _.each( data.filters, function( filter, key, list ) { #>