From f4e139e0e1673352ff4fc397f64b575df9a65a56 Mon Sep 17 00:00:00 2001 From: Silvio Date: Fri, 22 Oct 2010 18:16:24 -0200 Subject: Adding jquery_gallery_view_load() --- js/jquery_gallery_view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js') diff --git a/js/jquery_gallery_view.js b/js/jquery_gallery_view.js index 8ac3219..032c8e0 100644 --- a/js/jquery_gallery_view.js +++ b/js/jquery_gallery_view.js @@ -5,7 +5,7 @@ Drupal.behaviors.jqueryGalleryViewBehavior = function (context) { $('.views-field-title').attr('class', 'views-field-site-title'); // Add photos - if (Drupal.settings.jqueryGalleryView.photos != null) { + if (Drupal.settings.jqueryGalleryView != null && Drupal.settings.jqueryGalleryView.photos != null) { var photos = Drupal.settings.jqueryGalleryView.photos; // Image sizes -- cgit v1.2.3