Index: cd_sunlight.module
===================================================================
--- cd_sunlight.module	(revision 818)
+++ cd_sunlight.module	(working copy)
@@ -984,3 +984,15 @@
   $filename = $directory .'/'. $filename;
   return file_save_data($data, $filename, FILE_EXISTS_REPLACE);
 }
+
+/**
+ * For the congress view, use JQuery to hide broken images.
+ * 
+ * @param mixed $vars
+ */
+function cd_sunlight_preprocess_views_view(&$vars) {
+  $view = $vars['view'];
+  if ($view->name == "Congress") {
+    drupal_add_js(drupal_get_path('module', 'cd_sunlight') . '/cd_sunlight.js');
+  }
+}
Index: cd_sunlight.js
===================================================================
--- cd_sunlight.js	(revision 0)
+++ cd_sunlight.js	(revision 0)
@@ -0,0 +1,19 @@
+/**
+ * @file
+ * Provides javascript for CD Sunlight module.
+ *
+ */
+(function ($) {
+
+$(document).ready(function(){ 
+
+$("img").each(function(index) {
+        $(this).error(function() {
+            $(this).hide();     
+        });
+        $(this).attr("src", $(this).attr("src"));
+  });    
+
+});
+
+}(jQuery));

Property changes on: cd_sunlight.js
___________________________________________________________________
Added: svn:executable
   + *

