|
Lines 33-39
KOHA.coce = {
Link Here
|
| 33 |
var img = document.createElement("img"); |
33 |
var img = document.createElement("img"); |
| 34 |
img.src = url; |
34 |
img.src = url; |
| 35 |
img.classList.add("thumbnail"); |
35 |
img.classList.add("thumbnail"); |
| 36 |
img.title = url; //FIXME: to delete |
36 |
img.alt = "Cover image"; |
|
|
37 |
img.onload = function(){ |
| 38 |
// image dimensions can't be known until image has loaded |
| 39 |
if( img.height == 1 && img.width == 1 ){ |
| 40 |
$(this).remove(); |
| 41 |
} |
| 42 |
} |
| 37 |
$(this).html(img); |
43 |
$(this).html(img); |
| 38 |
}); |
44 |
}); |
| 39 |
} |
45 |
} |
| 40 |
- |
|
|