description fixed for gallery
This commit is contained in:
parent
e6c411b8e1
commit
3c0d2da9a7
|
@ -198,7 +198,10 @@ var galleryAPI = function(){
|
||||||
// $(".slideinfo b.info").text(imageArray[imagecount].title);
|
// $(".slideinfo b.info").text(imageArray[imagecount].title);
|
||||||
if($('.bt-tag').hasClass("active"))
|
if($('.bt-tag').hasClass("active"))
|
||||||
updatePhotoTag();
|
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)
|
if(imageArray.length > 1)
|
||||||
updateNavigation();
|
updateNavigation();
|
||||||
})
|
})
|
||||||
|
|
|
@ -218,7 +218,10 @@ var galleryAPI = function(){
|
||||||
}
|
}
|
||||||
// $(".slideinfo b.info").text(imageArray[imagecount].title);
|
// $(".slideinfo b.info").text(imageArray[imagecount].title);
|
||||||
updatePhotoTag();
|
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)
|
if(imageArray.length > 1)
|
||||||
updateNavigation();
|
updateNavigation();
|
||||||
})
|
})
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
<ul class="gallery_info clearfix">
|
<ul class="gallery_info clearfix">
|
||||||
<li class="view"><i class="icons-eye"></i> 321</li>
|
<li class="view"><i class="icons-eye"></i> 321</li>
|
||||||
<li><i class="icons-tag"></i></li>
|
<li><i class="icons-tag"></i></li>
|
||||||
<li><%= @ac%></li>
|
<li class="albumcateg"><%= @categories.find(album.category_id).title %></li>
|
||||||
</ul>
|
</ul>
|
||||||
<ul class="albumtag">
|
<ul class="albumtag">
|
||||||
<% @tags.each do |tag| %>
|
<% @tags.each do |tag| %>
|
||||||
|
|
Loading…
Reference in New Issue