Changeset 4485


Ignore:
Timestamp:
Sep 8, 2008, 8:39:28 AM (14 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #1108: Overview/Correction? factor plots doesn't show "Generating plot..." meter in IE.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/views/experiments/bioassaysets/view_bioassayset.jsp

    r4476 r4485  
    189189    function imageLoaded()
    190190    {
     191      var imageId = imageQueue[nextImage];
     192      var img = document.getElementById(imageId);
     193      img.src = img.realImg.src;
    191194      nextImage++;
    192       prepareNextImage();
    193     }
    194     function prepareNextImage()
     195      setTimeout('loadNextImage()', 100);
     196    }
     197    function loadNextImage()
    195198    {
    196199      if (imageQueue.length > nextImage)
     
    199202        var img = document.getElementById(imageId);
    200203        img.src = '../../../images/plot_generating_400x300.gif';
    201         setTimeout('loadNextImage()', 100);
    202       }
    203     }
    204     function loadNextImage()
    205     {
    206       if (imageQueue.length > nextImage)
    207       {
    208         var imageId = imageQueue[nextImage];
    209         var img = document.getElementById(imageId);
    210         img.onload = imageLoaded;
    211         img.src = img.realSrc;
     204        img.realImg = new Image();
     205        img.realImg.onload = imageLoaded;
     206        img.realImg.src = img.realSrc;
    212207      }
    213208    }
Note: See TracChangeset for help on using the changeset viewer.