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 <chris@bigballofwax.co.nz> Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
parent
ae2faff406
commit
da3c10bae5
2 changed files with 0 additions and 15 deletions
|
@ -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 });
|
||||
|
||||
|
|
|
@ -452,7 +452,6 @@ for (var i=0;i<ItemsNodes.length;i++){
|
|||
</div>
|
||||
<!-- TMPL_IF NAME="patronimages" --><script type="text/JavaScript" language="JavaScript">
|
||||
//<![CDATA[
|
||||
verify_patron_images();
|
||||
<!-- TMPL_IF NAME="CAN_user_tools" -->$("#patronimage").after("<a style=\"display: block; font-size:80%; margin:0 0 1em 1em;\" href=\"/cgi-bin/koha/tools/picture-upload.pl?cardnumber=<!-- TMPL_VAR NAME="cardnumber" -->&filetype=image\">+ Click to Add Image</a>").css({cursor: "pointer"}).click(function(){
|
||||
location.href="/cgi-bin/koha/tools/picture-upload.pl?cardnumber=<!-- TMPL_VAR NAME="cardnumber" -->&filetype=image";
|
||||
});<!-- /TMPL_IF -->
|
||||
|
|
Loading…
Reference in a new issue