Skip to content

Commit

Permalink
fix caption html issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Hayes committed Jan 14, 2013
1 parent 7bb1c6a commit 9d1f4f4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -388,11 +388,11 @@
if ($.trim($(captionLocation).text()).length < 1){
return false;
}
captionHTML = $('#' + captionLocation).html(); //get HTML from the matching HTML entity
// if location selector starts with '#', remove it so we don't see id="#selector"
if (captionLocation.charAt(0) == '#') {
captionLocation = captionLocation.substring(1, captionLocation.length);
}
captionHTML = $('#' + captionLocation).html(); //get HTML from the matching HTML entity
this.$caption
.attr('id', captionLocation) // Add ID caption TODO why is the id being set?
.html(captionHTML); // Change HTML in Caption
Expand Down

0 comments on commit 9d1f4f4

Please sign in to comment.