Commit 4e7162f1 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

On first load in view editor, hide non-current images & disable next button



We need a way to eval js in the view editor on the first display of a block
Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent cd1333f4
......@@ -30,5 +30,6 @@ function Slideshow(id, count) {
// $j(this.id + ' td.control span.last').click(function() {return self.change(self.count);});
$j(this.id + " img").hide();
$j(this.id + " img:eq(" + this.current + ")").show();
$j(this.id + ' td.control span.next').removeClass('disabled');
}
......@@ -6,12 +6,12 @@
<span class="prev disabled">&lsaquo;</span>
</td>
<td>
{foreach from=$images item=image}
<a href="{$image.link}" target="_blank"><img src="{$image.source}" alt="{$image.title}" title="{$image.title}" /></a>
{foreach from=$images item=image name=images}
<a href="{$image.link}" target="_blank"><img src="{$image.source}" alt="{$image.title}" title="{$image.title}" {if !$dwoo.foreach.images.first}style="display:none;"{/if}/></a>
{/foreach}
</td>
<td class="control">
<span class="next">&rsaquo;</span>
<span class="next disabled">&rsaquo;</span>
{*<span class="last">&raquo;</span>*}
</td>
</tr>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment