Lines 22-28
Link Here
|
22 |
var MSG_NO_ITEM_SELECTED = _("Nothing is selected."); |
22 |
var MSG_NO_ITEM_SELECTED = _("Nothing is selected."); |
23 |
var MSG_NON_RESERVES_SELECTED = _("One or more selected items cannot be placed on hold."); |
23 |
var MSG_NON_RESERVES_SELECTED = _("One or more selected items cannot be placed on hold."); |
24 |
var q_array = new Array(); // will hold search terms, if present |
24 |
var q_array = new Array(); // will hold search terms, if present |
|
|
25 |
|
25 |
[% IF ( AmazonCoverImages ) %] |
26 |
[% IF ( AmazonCoverImages ) %] |
|
|
27 |
var NO_AMAZON_IMAGE = _("No cover image available"); |
26 |
// http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html |
28 |
// http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html |
27 |
function verify_images() { |
29 |
function verify_images() { |
28 |
$("img").each(function(i){ |
30 |
$("img").each(function(i){ |
Lines 31-38
function verify_images() {
Link Here
|
31 |
h = this.height; |
33 |
h = this.height; |
32 |
if ((w == 1) || (h == 1)) { |
34 |
if ((w == 1) || (h == 1)) { |
33 |
this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif'; |
35 |
this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif'; |
|
|
36 |
$(this).parent().html("<span class=\"no-image\">"+NO_AMAZON_IMAGE+"</span>"); |
34 |
} else if ((this.complete != null) && (!this.complete)) { |
37 |
} else if ((this.complete != null) && (!this.complete)) { |
35 |
this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif'; |
38 |
this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif'; |
|
|
39 |
$(this).parent().html("<span class=\"no-image\">"+NO_AMAZON_IMAGE+"</span>"); |
36 |
} |
40 |
} |
37 |
} |
41 |
} |
38 |
}); |
42 |
}); |
39 |
- |
|
|