Permalink
Browse files

Undo changes to the lightbox.

  • Loading branch information...
1 parent 649a9aa commit a7b1704438a1387be54455147acf727fb2c8551d @vanderhoorn vanderhoorn committed Nov 14, 2012
@@ -236,7 +236,8 @@ Lightbox.prototype = {
this.imageArray =
$$(imageLink.tagName + '[href][rel="' + imageLink.rel + '"]').
// !!! HACK -- include the image alt
- collect(function(anchor){ return [anchor.href, anchor.down('img').title, anchor.down('img').alt]; }).
+ //collect(function(anchor){ return [anchor.href, anchor.title, anchor.down('img').alt]; }).
+ collect(function(anchor){ return [anchor.href, '', anchor.down('img').alt]; }).
uniq();
while (this.imageArray[imageNum][0] != imageLink.href) { imageNum++; }
@@ -23,7 +23,7 @@
<% if (image_node = news_item.node.children.accessible.with_content_type('Image').first) -%>
<%=
link_to(
- image_tag(content_node_path(image_node, :action => :thumbnail), :alt => image_node.content.alt.to_s, :title => image_node.content.description),
+ image_tag(content_node_path(image_node, :action => :thumbnail), :alt => image_node.content.alt.to_s),
'#',
{
:rel => "lightbox[#{news_item.node.id}]", :title => 'Vergroot deze afbeelding',
@@ -1,2 +1,2 @@
.weblogPostImage{ :id => "weblog_post_image_#{image.id}" }
- = link_to(image_tag(content_node_path(image.node, :action => :thumbnail), :alt => image.alt.to_s, :title => image.description), '#', { :rel => "lightbox[#{@weblog_post.node.id}]", :title => 'Vergroot deze afbeelding' })
+ = link_to(image_tag(content_node_path(image.node, :action => :thumbnail), :alt => image.alt.to_s), '#', { :rel => "lightbox[#{@weblog_post.node.id}]", :title => 'Vergroot deze afbeelding' })
@@ -2,4 +2,4 @@
- if content.url.present?
= link_to(image_tag(sidebox_image_path(content, :format => :jpg), :alt => content.alt.to_s), h(content.url), :title => "#{h content.description}", :class => 'clearfix')
- else
- = link_to_node(image_tag(sidebox_image_path(content, :format => :jpg), :alt => content.alt.to_s, :title => content.description), node, { :action => :full }, { :rel => "lightbox['sidebox']", :title => 'Vergroot deze afbeelding' })
+ = link_to_node(image_tag(sidebox_image_path(content, :format => :jpg), :alt => content.alt.to_s), node, { :action => :full }, { :rel => "lightbox['sidebox']", :title => 'Vergroot deze afbeelding' })
@@ -20,7 +20,7 @@
.content.clearfix
- if (image_node = news_item.node.children.accessible.with_content_type('Image').first)
- = link_to_node(image_tag(content_node_path(image_node, :action => :thumbnail), :alt => image_node.content.alt.to_s, :title => image_node.content.description), image_node, { :action => :full }, { :rel => "lightbox[#{news_item.node.id}]", :title => 'Vergroot deze afbeelding', :class => 'right' })
+ = link_to_node(image_tag(content_node_path(image_node, :action => :thumbnail), :alt => image_node.content.alt.to_s), image_node, { :action => :full }, { :rel => "lightbox[#{news_item.node.id}]", :title => 'Vergroot deze afbeelding', :class => 'right' })
- if news_item.preamble.present?
= simple_format(h(news_item.preamble))
@@ -1,3 +1,3 @@
#images_bar
- images.each do |image|
- = link_to_node(image_tag(thumbnail_image_path(image, :format => :jpg), :alt => image.alt.to_s, :title => image.description), image.node, { :action => :full, :format => :jpg}, { :rel => "lightbox[#{rel}]", :title => 'Vergroot deze afbeelding' })
+ = link_to_node(image_tag(thumbnail_image_path(image, :format => :jpg), :alt => image.alt.to_s), image.node, { :action => :full, :format => :jpg}, { :rel => "lightbox[#{rel}]", :title => 'Vergroot deze afbeelding' })
@@ -1,7 +1,7 @@
<div id='weblog_post_image_<%= image.id -%>' class='weblogPostImage'>
<%=
link_to_node(
- image_tag(content_node_path(image.node, :action => :thumbnail), :alt => image.alt.to_s, :title => image.description),
+ image_tag(content_node_path(image.node, :action => :thumbnail), :alt => image.alt.to_s),
image.node,
{ :action => :full },
{ :rel => "lightbox[#{@weblog_post.node.id}]", :title => 'Vergroot deze afbeelding' }

0 comments on commit a7b1704

Please sign in to comment.