aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jquery_gallery_view.module1
-rw-r--r--js/jquery_gallery_view.js2
2 files changed, 1 insertions, 2 deletions
diff --git a/jquery_gallery_view.module b/jquery_gallery_view.module
index 329248b..fe3b815 100644
--- a/jquery_gallery_view.module
+++ b/jquery_gallery_view.module
@@ -63,7 +63,6 @@ function jquery_gallery_view_setup_photos($view, $field) {
// Add needed javascript
drupal_add_js(array('jqueryGalleryView' => array('photos' => $photos)), 'setting');
- drupal_add_js(drupal_get_path('module', 'jquery_gallery_view') .'/js/jquery-gallery_view.js');
drupal_add_js(drupal_get_path('module', 'jquery_gallery_view') .'/js/jquery-galleryview/jquery.galleryview-2.1.1-pack.js');
drupal_add_js(drupal_get_path('module', 'jquery_gallery_view') .'/js/jquery-galleryview/jquery.timers-1.2.js');
}
diff --git a/js/jquery_gallery_view.js b/js/jquery_gallery_view.js
index 909ee0e..8ac3219 100644
--- a/js/jquery_gallery_view.js
+++ b/js/jquery_gallery_view.js
@@ -14,7 +14,7 @@ Drupal.behaviors.jqueryGalleryViewBehavior = function (context) {
// Image paths
var base_url = window.location.protocol + '//' + window.location.hostname;
- var files = Drupal.settings.jqueryGalleryView.files;
+ var files = Drupal.settings.jqueryGalleryView.photos;
var base_location = base_url + '/' + Drupal.settings.basePath + files + '/';
var imagecache = 'imagecache/' + width + 'x' + height + '/';
var image_folder = base_location + imagecache + '/';