[Pcsclite-git-commit] [website] 02/04: Reader selection: use relative URL for images

Ludovic Rousseau rousseau at moszumanska.debian.org
Tue Oct 13 15:06:57 UTC 2015


This is an automated email from the git hooks/post-receive script.

rousseau pushed a commit to branch master
in repository website.

commit f35e607b3e6e8d2c295e4432a4d54ef02faa2bd5
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date:   Sat Oct 10 12:14:57 2015 +0200

    Reader selection: use relative URL for images
    
    Do not hardcode the URL of reader images but use a relative path
    instead.
    If the main page is using https: then the images will also use https:
    and Firefox will not complain that part of the page are insecure.
---
 select_readers/js/main.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/select_readers/js/main.js b/select_readers/js/main.js
index f919969..f6b8104 100644
--- a/select_readers/js/main.js
+++ b/select_readers/js/main.js
@@ -67,7 +67,7 @@ function update_list() {
         output += '<div class="thumbnail section-' + reader.section + '">';
         output += '<h2><a href="' + reader_url(reader) + '">' + reader.iManufacturer + "</a></h2>";
         output += "<p>" + reader.iProduct + "</p>";
-        output += '<img src="http://pcsclite.alioth.debian.org/ccid/img/' + reader.image + '">';
+        output += '<img src="../ccid/img/' + reader.image + '">';
         output += "</div>";
         output += "</div>";
         Results[reader.section].append(output);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pcsclite/website.git



More information about the Pcsclite-cvs-commit mailing list