diff webapp/src/main/webapp/jquery/jquery.digilib.buttons.js @ 1205:a5aea37fac03

fixed full http:// paths for button images.
author robcast
date Mon, 22 Jul 2013 13:27:43 +0200
parents de9c762ef86b
children 6cff723fc149
line wrap: on
line diff
--- a/webapp/src/main/webapp/jquery/jquery.digilib.buttons.js	Fri Jul 19 19:08:39 2013 +0200
+++ b/webapp/src/main/webapp/jquery/jquery.digilib.buttons.js	Mon Jul 22 13:27:43 2013 +0200
@@ -306,7 +306,7 @@
         var mode = settings.interactionMode;
         var imagePath = settings.buttonSettings[mode].imagePath;
         // make relative imagePath absolute
-        if (imagePath.charAt(0) !== '/' && imagePath.substring(0,3) !== 'http') {
+        if (imagePath.charAt(0) !== '/' && imagePath.substring(0,7) !== 'http://') {
         	imagePath = settings.digilibBaseUrl + '/jquery/' + imagePath;
         }
         var buttonConfig = settings.buttons[buttonName];