This file was missing from previous commit. bakertaylorimages.js manages the display...
authorOwen Leonard <oleonard@myacpl.org>
Mon, 27 Oct 2008 19:41:01 +0000 (14:41 -0500)
committerGalen Charlton <galen.charlton@liblime.com>
Tue, 4 Nov 2008 21:47:48 +0000 (15:47 -0600)
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
koha-tmpl/opac-tmpl/prog/en/js/bakertaylorimages.js [new file with mode: 0644]

diff --git a/koha-tmpl/opac-tmpl/prog/en/js/bakertaylorimages.js b/koha-tmpl/opac-tmpl/prog/en/js/bakertaylorimages.js
new file mode 100644 (file)
index 0000000..00b025a
--- /dev/null
@@ -0,0 +1,11 @@
+// http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
+function bt_verify_images() {
+       $("img").each(function(i){
+              if (this.src.indexOf('btol.com') >= 0) {
+            h = this.height;
+            if (h == 20) {
+                               $(this).before("<span class=\"no-image\" style=\"margin-bottom:5px;width:80px;\">"+NO_BAKERTAYLOR_IMAGE+"</span>");
+            }
+               }
+               });
+               }