Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix for the 'undefined' description #75

Merged
merged 1 commit into from

2 participants

@toszcze

Fix for the 'undefined' description when the 'title' image attribute is missing.

@scaron scaron merged commit 7588094 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 27, 2011
  1. @toszcze
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  js/jquery.prettyPhoto.js
View
2  js/jquery.prettyPhoto.js
@@ -211,7 +211,7 @@
$pp_pic_holder.find('.currentTextHolder').text((set_position+1) + settings.counter_separator_label + $(pp_images).size());
// Set the description
- if(pp_descriptions[set_position] != ""){
+ if(typeof pp_descriptions[set_position] != 'undefined' && pp_descriptions[set_position] != ""){
$pp_pic_holder.find('.pp_description').show().html(unescape(pp_descriptions[set_position]));
}else{
$pp_pic_holder.find('.pp_description').hide();
Something went wrong with that request. Please try again.