mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
- fixed init tooltips at modal windows;
This commit is contained in:
@@ -101,6 +101,8 @@ function um_admin_modal_ajaxcall( act_id, arg1, arg2, arg3 ) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
um_init_tooltips();
|
||||
|
||||
},
|
||||
error: function(data){
|
||||
|
||||
@@ -1,3 +1,15 @@
|
||||
function um_init_tooltips() {
|
||||
if ( jQuery( '.um_tooltip' ).length > 0 ) {
|
||||
jQuery( '.um_tooltip' ).tooltip({
|
||||
tooltipClass: "um_tooltip",
|
||||
content: function () {
|
||||
return jQuery( this ).attr( 'title' );
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
jQuery(document).ready(function() {
|
||||
|
||||
/**
|
||||
@@ -84,14 +96,7 @@ jQuery(document).ready(function() {
|
||||
/**
|
||||
Tooltips
|
||||
**/
|
||||
if ( jQuery( '.um_tooltip' ).length > 0 ) {
|
||||
jQuery( '.um_tooltip' ).tooltip({
|
||||
tooltipClass: "um_tooltip",
|
||||
content: function () {
|
||||
return jQuery( this ).attr( 'title' );
|
||||
}
|
||||
});
|
||||
}
|
||||
um_init_tooltips();
|
||||
|
||||
if( typeof tipsy !== 'undefined' ){
|
||||
jQuery('.um-admin-tipsy-n').tipsy({gravity: 'n', opacity: 1, live: 'a.live' });
|
||||
|
||||
Reference in New Issue
Block a user