of course, because JHtml::_('behavior.tooltip'); do not know that you works with AJAX
you need initialize the "tooltip" script each time when you refresh the content via AJAX,
but as Joomla have no simple way for it, you need to duplicate the code from ('behavior.tooltip') in you AJAX code,
make the callback, something like:
function ajaxLoadedCallback(){
$$('#my-block .hasTip').each(function(el) {
var title = el.get('title');
if (title) {
var parts = title.split('::', 2);
el.store('tip:title', parts[0]);
el.store('tip:text', parts[1]);
}
});
var JTooltips = new Tips($$('#my-block .hasTip'), $options);
}
hope it will helps ;)
Понеділок, 15 липня 2013 р. 22:13:21 UTC+3 користувач Viper написав: