summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStella Power2008-02-27 14:07:59 (GMT)
committer Stella Power2008-02-27 14:07:59 (GMT)
commit1e57f112cf6facedacbd8ff0e7ab81a83c3178b9 (patch)
treee6d695b0118ae289036d09bb4937caba63c7d45f
parentd0cec47f8a2072703bf0e0cfb520ee580ab23d5d (diff)
#226309 - fix for image_nodes.js serious error where one of the trigger sizes
was "original".
-rw-r--r--lightbox2.module9
1 files changed, 7 insertions, 2 deletions
diff --git a/lightbox2.module b/lightbox2.module
index 6d9db78..73c23c4 100644
--- a/lightbox2.module
+++ b/lightbox2.module
@@ -445,8 +445,13 @@ function lightbox2_add_files() {
if (variable_get('lightbox2_image_node', true)) {
$trigger_sizes = variable_get('lightbox2_trigger_image_size', array('thumbnail' => t('Thumbnail')));
foreach ($trigger_sizes as $size => $size_name) {
- $trigger_image_classes .= "img.$size, img.image-$size,";
- $image_node_sizes .= "\.$size|";
+ if (empty($size)) {
+ $trigger_image_classes .= "img._original, img.image-_original,";
+ }
+ else {
+ $trigger_image_classes .= "img.$size, img.image-$size,";
+ $image_node_sizes .= "\.$size|";
+ }
}
}
// Custom images.