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

(-)a/koha-tmpl/intranet-tmpl/prog/en/js/localcovers.js (+7 lines)
Lines 28-33 KOHA.LocalCover = { Link Here
28
                '/cgi-bin/koha/catalogue/image.pl?thumbnail=1&biblionumber=' + $(mydiv).attr("class"))
28
                '/cgi-bin/koha/catalogue/image.pl?thumbnail=1&biblionumber=' + $(mydiv).attr("class"))
29
                .load(function () {
29
                .load(function () {
30
                    if (!this.complete || typeof this.naturalWidth == "undefined" || this.naturalWidth == 0) {
30
                    if (!this.complete || typeof this.naturalWidth == "undefined" || this.naturalWidth == 0) {
31
                        //IE HACK
32
                        try {
33
                            $(mydiv).append(img);
34
                            $(mydiv).children('.no-image').remove();
35
                        }
36
                        catch(err){
37
                        }
31
                    } else {
38
                    } else {
32
                        if (uselink) {
39
                        if (uselink) {
33
                            var a = $("<a />").attr('href', '/cgi-bin/koha/catalogue/imageviewer.pl?biblionumber=' + $(mydiv).attr("class"));
40
                            var a = $("<a />").attr('href', '/cgi-bin/koha/catalogue/imageviewer.pl?biblionumber=' + $(mydiv).attr("class"));
(-)a/koha-tmpl/opac-tmpl/prog/en/js/localcovers.js (-1 / +7 lines)
Lines 28-33 KOHA.LocalCover = { Link Here
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
                    if (!this.complete || typeof this.naturalWidth == "undefined" || this.naturalWidth == 0) {
30
                    if (!this.complete || typeof this.naturalWidth == "undefined" || this.naturalWidth == 0) {
31
                        //IE HACK
32
                        try {
33
                            $(mydiv).append(img);
34
                            $(mydiv).children('.no-image').remove();
35
                        }
36
                        catch(err){
37
                        };
31
                    } else {
38
                    } else {
32
                        if (uselink) {
39
                        if (uselink) {
33
                            var a = $("<a />").attr('href', '/cgi-bin/koha/opac-imageviewer.pl?biblionumber=' + $(mydiv).attr("class"));
40
                            var a = $("<a />").attr('href', '/cgi-bin/koha/opac-imageviewer.pl?biblionumber=' + $(mydiv).attr("class"));
34
- 

Return to bug 8264