Skip to content

Commit 58354d7

Browse files
committed
Cleaned the code a little bit
1 parent 5119101 commit 58354d7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

assets/touchTouch/touchTouch.jquery.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151

5252
if(captions.length > 0)
5353
{
54-
//overlay.append('<div id="caption-container"><p id="caption"></p></div>');
5554
captionContainer.append(captionContent).appendTo(overlay);
5655
}
5756

@@ -412,8 +411,8 @@
412411
var current_placeholder = placeholders.eq(idx);
413412
var current_img = current_placeholder.find('img');
414413
//get the padding of the caption content
415-
var padding = parseInt(captionContent.css('padding-left'));
416-
//set the content and width of the caption
414+
var padding = parseInt(captionContent.css('padding-left'));
415+
//set the content and width of the caption
417416
captionContent.text(captions[idx]).css('width',current_img.width()- 2 * padding);
418417
//set the distance from the bottom for the caption container
419418
//fade in the caption container

0 commit comments

Comments
 (0)