Changeset 3036 for contribs

Show
Ignore:
Timestamp:
10/05/09 10:07:48 (3 years ago)
Author:
fredj
Message:

set the broken image src (for webkit)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • contribs/mapfish-api/trunk/MapFishApi/js/mapfish_api.js

    r3016 r3036  
    134134            OpenLayers.Util.onImageLoadError = function() { 
    135135                this.style.display = "none"; 
    136                 // set the size to 0x0 because webkit don't take the display into 
     136                // set the img src because webkit don't take the display into 
    137137                // account and display a "broken image" icon. 
    138                 this.style.width = "0px"; 
    139                 this.style.height = "0px"; 
     138                this.src = Ext.BLANK_IMAGE_URL; 
    140139            }; 
    141140        }