Skip to content

Commit

Permalink
Fix title entities, slideshow
Browse files Browse the repository at this point in the history
  • Loading branch information
fancyapps committed Sep 20, 2013
1 parent 535993d commit fbc8acc
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 39 deletions.
2 changes: 1 addition & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<script type="text/javascript" src="../lib/jquery.mousewheel.pack.js?v=3.1.3"></script>

<!-- Add fancyBox main JS and CSS files -->
<script type="text/javascript" src="../source/jquery.fancybox.js?v=2.1.5"></script>
<script type="text/javascript" src="../source/jquery.fancybox.pack.js?v=2.1.5"></script>
<link rel="stylesheet" type="text/css" href="../source/jquery.fancybox.css?v=2.1.5" media="screen" />

<!-- Add Button helper (this is optional) -->
Expand Down
14 changes: 7 additions & 7 deletions source/jquery.fancybox.css
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
}

#fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span {
background-image: url('fancybox_sprite.png');
background-image: url(fancybox_sprite.png);
}

#fancybox-loading {
Expand All @@ -94,7 +94,7 @@
#fancybox-loading div {
width: 44px;
height: 44px;
background: url('fancybox_loading.gif') center center no-repeat;
background: url(fancybox_loading.gif) center center no-repeat;
}

.fancybox-close {
Expand All @@ -114,7 +114,7 @@
height: 100%;
cursor: pointer;
text-decoration: none;
background: transparent url('blank.gif'); /* helps IE */
background: transparent url(blank.gif); /* helps IE */
-webkit-tap-highlight-color: rgba(0,0,0,0);
z-index: 8040;
}
Expand Down Expand Up @@ -164,7 +164,7 @@
/* Overlay helper */

.fancybox-lock {
overflow: hidden !important;
overflow: visible !important;
width: auto;
}

Expand All @@ -183,7 +183,7 @@
overflow: hidden;
display: none;
z-index: 8010;
background: url('fancybox_overlay.png');
background: url(fancybox_overlay.png);
}

.fancybox-overlay-fixed {
Expand Down Expand Up @@ -262,12 +262,12 @@
only screen and (min-device-pixel-ratio: 1.5){

#fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span {
background-image: url('[email protected]');
background-image: url([email protected]);
background-size: 44px 152px; /*The size of the normal image, half the size of the hi-res image*/
}

#fancybox-loading div {
background-image: url('[email protected]');
background-image: url([email protected]);
background-size: 24px 24px; /*The size of the normal image, half the size of the hi-res image*/
}
}
7 changes: 4 additions & 3 deletions source/jquery.fancybox.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@
if (isQuery(element)) {
obj = {
href : element.data('fancybox-href') || element.attr('href'),
title : element.data('fancybox-title') || element.attr('title'),
title : $('<div/>').text( element.data('fancybox-title') || element.attr('title') ).html(),
isDom : true,
element : element
};
Expand Down Expand Up @@ -363,7 +363,7 @@
cancel: function () {
var coming = F.coming;

if (false === F.trigger('onCancel')) {
if (coming && false === F.trigger('onCancel')) {
return;
}

Expand Down Expand Up @@ -1469,12 +1469,13 @@

// Stop the slideshow if this is the last item
if (!current.loop && current.index === current.group.length - 1) {

F.play( false );

} else if (F.opts.autoPlay && !F.player.isActive) {
F.opts.autoPlay = false;

F.play();
F.play(true);
}
},

Expand Down
Loading

0 comments on commit fbc8acc

Please sign in to comment.