Bug Tracker

Changeset 5555

Show
Ignore:
Timestamp:
05/12/08 00:52:00 (4 months ago)
Author:
kswedberg
Message:

fixed problem with title attr conflict when using custom title; avoided opera bug for img loading countdown with ajax (had to resort to browser sniffing for now. sorry!)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/plugins/cluetip/jquery.cluetip.js

    r4880 r5555  
    8787 
    8888      // create the cluetip divs 
    89       if (!$cluetip) { 
     89      if (!$('#cluetip').length) { 
    9090        $cluetipInner = $('<div id="cluetip-inner"></div>'); 
    9191        $cluetipTitle = $('<h3 id="cluetip-title"></h3>');         
     
    231231          ajaxSettings.complete = function() { 
    232232            imgCount = $('#cluetip-inner img').length; 
    233                 if (imgCount) { 
    234                   $('#cluetip-inner img').load( function(){ 
     233                if (imgCount && !$.browser.opera) { 
     234                  $('#cluetip-inner img').load(function() { 
    235235                    imgCount--; 
    236236                    if (imgCount<1) { 
     
    362362      .children().empty(); 
    363363      if (tipTitle) { 
    364         $this.attr('title', tipTitle); 
     364        $this.attr(opts.titleAttribute, tipTitle); 
    365365      } 
    366366      $this.css('cursor','');