- fixed init tooltips at modal windows;

This commit is contained in:
nikitozzzzzzz
2017-07-28 14:24:58 +03:00
parent a0eca5f350
commit 1bc03392b7
2 changed files with 15 additions and 8 deletions
@@ -101,6 +101,8 @@ function um_admin_modal_ajaxcall( act_id, arg1, arg2, arg3 ) {
}
}
um_init_tooltips();
},
error: function(data){
+13 -8
View File
@@ -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' });