View | Details | Raw Unified | Return to bug 11602
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/js/localcovers.js (-2 / +2 lines)
Lines 27-32 KOHA.LocalCover = { Link Here
27
            var img = $("<img />").attr('src',
27
            var img = $("<img />").attr('src',
28
                '/cgi-bin/koha/opac-image.pl?thumbnail=1&biblionumber=' + $(mydiv).attr("class"))
28
                '/cgi-bin/koha/opac-image.pl?thumbnail=1&biblionumber=' + $(mydiv).attr("class"))
29
                .load(function () {
29
                .load(function () {
30
                    this.setAttribute("class", "thumbnail");
30
                    if (!this.complete || typeof this.naturalWidth == "undefined" || this.naturalWidth == 0) {
31
                    if (!this.complete || typeof this.naturalWidth == "undefined" || this.naturalWidth == 0) {
31
                        //IE HACK
32
                        //IE HACK
32
                        try {
33
                        try {
Lines 35-41 KOHA.LocalCover = { Link Here
35
                        }
36
                        }
36
                        catch(err){
37
                        catch(err){
37
                        };
38
                        };
38
                    } else {
39
                    } else if (this.width > 1) { // don't show the silly 1px "no image" img
39
                        if (uselink) {
40
                        if (uselink) {
40
                            var a = $("<a />").attr('href', '/cgi-bin/koha/opac-imageviewer.pl?biblionumber=' + $(mydiv).attr("class"));
41
                            var a = $("<a />").attr('href', '/cgi-bin/koha/opac-imageviewer.pl?biblionumber=' + $(mydiv).attr("class"));
41
                            $(a).append(img);
42
                            $(a).append(img);
42
- 

Return to bug 11602