From da3c10bae52f4f43a1c29939dcff14d00c256cb2 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 28 Feb 2008 10:18:36 +1300 Subject: [PATCH] Patron image javascript check is no longer necessary now that alternate patron image is served up automatically by new patron image script. Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js | 14 -------------- .../prog/en/modules/members/moremember.tmpl | 1 - 2 files changed, 15 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js b/koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js index 371ae2bd21..c29ac0f49b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js +++ b/koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js @@ -15,20 +15,6 @@ function _(s) { return s } // dummy function for gettext }); -// http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html -function verify_patron_images() { - for (var i = 0; i < document.images.length; i++) { - img = document.images[i]; - if ((img.src.indexOf('patronimage') >= 0)) { - w = img.width; - h = img.height; - if ((w == 0) && (h == 0) || ((img.complete != null) && (!img.complete))) { - img.src = '/intranet-tmpl/prog/img/patron-blank.png'; - } - } - } -} - YAHOO.util.Event.onContentReady("header", function () { var oMoremenu = new YAHOO.widget.Menu("moremenu", { zindex: 2 }); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl index 93eee6700c..c64ee7d24a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl @@ -452,7 +452,6 @@ for (var i=0;i