]> git.parisson.com Git - pdf.js.git/commitdiff
Image directory as a constant, adding myself to LICENSE file
authorSaebekassebil <saebekassebil@gmail.com>
Thu, 22 Dec 2011 13:44:08 +0000 (14:44 +0100)
committerSaebekassebil <saebekassebil@gmail.com>
Thu, 22 Dec 2011 13:44:08 +0000 (14:44 +0100)
LICENSE
web/viewer.js

diff --git a/LICENSE b/LICENSE
index f8a848205708f8457cbf0745d8b5aebdf4c60e43..db52dec8ec6cbc7f8210fe89e809b081586638de 100644 (file)
--- a/LICENSE
+++ b/LICENSE
@@ -9,6 +9,7 @@
                   Yury Delendik
                   Kalervo Kujala
                   Adil Allawi <@ironymark>
+                  Jakob Miland <saebekassebil@gmail.com>
 
     Permission is hereby granted, free of charge, to any person obtaining a
     copy of this software and associated documentation files (the "Software"),
index 1c8f6c03d570a77e93d8c6b9cfcaea7321ae002e..e2ffcef2920d25a12a1472a64363def826717abc 100644 (file)
@@ -11,7 +11,7 @@ var kCssUnits = 96.0 / 72.0;
 var kScrollbarPadding = 40;
 var kMinScale = 0.25;
 var kMaxScale = 4.0;
-
+var kImageDirectory = './images/';
 
 var Cache = function cacheCache(size) {
   var data = [];
@@ -480,7 +480,7 @@ var PageView = function pageView(container, content, id, pageWidth, pageHeight,
       container.className = 'annotComment';
 
       var image = createElementWithStyle('img', item);
-      image.src = './images/' + type.toLowerCase() + '.svg';
+      image.src = kImageDirectory + type.toLowerCase() + '.svg';
       var content = document.createElement('div');
       content.setAttribute('hidden', true);
       var title = document.createElement('h1');