description fixed for gallery

This commit is contained in:
Harry Bomrah 2013-07-18 17:20:46 +08:00 committed by saurabhbhatia
parent e6c411b8e1
commit 3c0d2da9a7
3 changed files with 9 additions and 3 deletions

View File

@ -198,7 +198,10 @@ var galleryAPI = function(){
// $(".slideinfo b.info").text(imageArray[imagecount].title);
if($('.bt-tag').hasClass("active"))
updatePhotoTag();
$(".slideinfo .info").text(imageArray[imagecount].description);
if(imageArray[imagecount].description)
$(".slideinfo .info").text(imageArray[imagecount].description);
else
$(".slideinfo .info").text("");
if(imageArray.length > 1)
updateNavigation();
})

View File

@ -218,7 +218,10 @@ var galleryAPI = function(){
}
// $(".slideinfo b.info").text(imageArray[imagecount].title);
updatePhotoTag();
$(".slideinfo .info").text(imageArray[imagecount].description);
if(imageArray[imagecount].description)
$(".slideinfo .info").text(imageArray[imagecount].description);
else
$(".slideinfo .info").text("");
if(imageArray.length > 1)
updateNavigation();
})

View File

@ -11,7 +11,7 @@
<ul class="gallery_info clearfix">
<li class="view"><i class="icons-eye"></i> 321</li>
<li><i class="icons-tag"></i></li>
<li><%= @ac%></li>
<li class="albumcateg"><%= @categories.find(album.category_id).title %></li>
</ul>
<ul class="albumtag">
<% @tags.each do |tag| %>