changeset 1205:a5aea37fac03

fixed full http:// paths for button images.
author robcast
date Mon, 22 Jul 2013 13:27:43 +0200
parents a6532856dae1
children ad17716ebc54
files webapp/src/main/webapp/jquery/jquery.digilib.arrows.js webapp/src/main/webapp/jquery/jquery.digilib.buttons.js webapp/src/main/webapp/jquery/jquery.digilib.js
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/webapp/src/main/webapp/jquery/jquery.digilib.arrows.js	Fri Jul 19 19:08:39 2013 +0200
+++ b/webapp/src/main/webapp/jquery/jquery.digilib.arrows.js	Mon Jul 22 13:27:43 2013 +0200
@@ -181,7 +181,7 @@
         var cssPrefix = settings.cssPrefix;
         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];
--- 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];
--- a/webapp/src/main/webapp/jquery/jquery.digilib.js	Fri Jul 19 19:08:39 2013 +0200
+++ b/webapp/src/main/webapp/jquery/jquery.digilib.js	Mon Jul 22 13:27:43 2013 +0200
@@ -42,7 +42,7 @@
 
     var defaults = {
         // version of this script
-        'version' : 'jquery.digilib.js 2.2.0a',
+        'version' : 'jquery.digilib.js 2.2.1',
         // logo url
         'logoUrl' : 'img/digilib-logo-text1.png',
         // homepage url (behind logo)