Fixed fancybox for videos.
authorLaury GvR <laury@gaslightmedia.com>
Thu, 23 Oct 2014 17:20:06 +0000 (13:20 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Thu, 23 Oct 2014 17:20:06 +0000 (13:20 -0400)
Nextgen had been set to apply lightbox to all images on the site.
This caused every single image to spawn a lightbox, like head logo.
Only set to Nextgen images again, which required ngg-fancybox to
recognise an element (even video) as a "nextgen image". Was
previously removing that class to attempt to get it to work at all.

footer.php
js/app.js
page-73.php

index f97cfcb..4947150 100644 (file)
   jQuery(function() {
     jQuery('.enews-signup > a').replaceWith('<?php echo $modal_link; ?>');
     jQuery('.enews-signup > a').on( "click", function() {
-    jQuery(this).modal({
-      closeText: '&times;',
-      fadeDuration: 250
-    });
+        jQuery(this).modal({
+            closeText: '&times;',
+            fadeDuration: 250
+        });
 
-    return false;
-  });
+        return false;
+    });
   });
 
 </script>
index 66ba476..9eddb74 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -9,8 +9,7 @@ var c=b.delta_x<0?r+1:r-1;b.active=!0,p._goto(c)}}}).on("touchend.fndtn.orbit",f
 
 
 var $=jQuery.noConflict();
-;
-jQuery(document).foundation();;// Joyride demo
+;jQuery(document).foundation();;// Joyride demo
 $('#start-jr').on('click', function() {
   $(document).foundation('joyride','start');
 });;
index 2336d06..89fd976 100644 (file)
@@ -48,7 +48,7 @@
 <script>
     jQuery(document).ready(function(){
         jQuery(".ngg-fancybox").each(function (){
-            jQuery(this).removeClass("ngg-fancybox").addClass("various iframe");
+            jQuery(this).addClass("various iframe");
             jQuery(this).attr("href",jQuery(this).children("img").attr("title"));
         });
     });