From f44faafca5a3bcc3093ff16dfff1c448fb865d6a Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Thu, 24 Oct 2013 11:01:48 -0400
Subject: [PATCH] Added comments.

---
 themes/blueprint/js/preview.js | 3 +++
 themes/bootstrap/js/preview.js | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/themes/blueprint/js/preview.js b/themes/blueprint/js/preview.js
index e2235077047..70871aa8716 100644
--- a/themes/blueprint/js/preview.js
+++ b/themes/blueprint/js/preview.js
@@ -28,7 +28,10 @@ function getHTPreviews(skeys) {
 }
 
 function applyPreviewUrl($link, url) {
+    // Update the preview button:
     $link.attr('href', url).show();
+
+    // Update associated record thumbnail, if any:
     $link.parents('.result,.record')
         .find('img.summcover,img.recordcover')
         .parents('a').attr('href', url);
diff --git a/themes/bootstrap/js/preview.js b/themes/bootstrap/js/preview.js
index c1eed9fd20e..087581fe6f6 100644
--- a/themes/bootstrap/js/preview.js
+++ b/themes/bootstrap/js/preview.js
@@ -28,7 +28,10 @@ function getHTPreviews(skeys) {
 }
 
 function applyPreviewUrl($link, url) {
+    // Update the preview button:
     $link.attr('href', url).show();
+
+    // Update associated record thumbnail, if any:
     $link.parents('.result,.record')
         .find('img.img-polaroid')
         .parents('a').attr('href', url);
-- 
GitLab