well if i put $('[title]').tooltip('leave') to the ajax callbak, it's work.
but IMHO this is not the cleanest way to do it.
any suggestion are welcome.
thanks
On Monday, June 11, 2012 5:35:42 PM UTC+7, arman adhitama wrote:
>
> hi,
> i'm not sure whether this is bugs or not, but i can't make tooltip works
> correctly (it won't close on mouseleave) on content loaded with ajax.
>
> here my codes :
>
> $.ajax({
> url: $(this).attr('data-popup'),success: function(data) {
> $('.content-inner').delay(1000).hideLoading();
> $('.content-inner').html(data);
> $('*[data-image]').drawingImage();
> }
> });
>
> $(document).tooltip({
> selector: '[title]'
> });
>
> checked on my firebug and no error shown.
>
> anyone had experienced same problem with me?
>
> thanks
>