Permalink
Browse files

id hash + non-infinite slides, now chooses correct slide

  • Loading branch information...
1 parent 5ff49d2 commit 480c4368c7ed2641d85a927f12f02aac1dbc2463 @Mottie Mottie committed Mar 20, 2012
Showing with 13 additions and 14 deletions.
  1. +5 −5 index.html
  2. +4 −4 js/jquery.anythingslider.js
  3. +3 −4 js/jquery.anythingslider.min.js
  4. +1 −1 package.json
View
@@ -362,6 +362,11 @@
Only the latest versions will be shown here. See the <a href="https://github.com/ProLoser/AnythingSlider/wiki/Change-Log">full change log here</a>.<br>
<br>
+ <h3>Version 1.7.27</h3>
+ <ul>
+ <li>Fixed a bug that previously would show the slide before the desired one, if the window location hash was targeting an ID in the slider and <code>infiniteSlides</code> was set to false.</li>
+ </ul>
+
<h3>Version 1.7.26</h3>
<ul>
<li>Modified the <code>navigationFormatter</code> option to now allow applying attributes directly to the tab as well as modifying the contents. Please refer to the <a href="https://github.com/ProLoser/AnythingSlider/wiki/Navigation-options#wiki-navigationformatter">documentation</a> for more details.</li>
@@ -423,11 +428,6 @@
<li>Another fix for <a href="https://github.com/ProLoser/AnythingSlider/issues/216">issue #216</a>. This time it ignores "#/" and "#!/" in the location hash.</li>
</ul>
- <h3>Version 1.7.17</h3>
- <ul>
- <li>Fixed a problem with using <a href="http://www.asual.com/jquery/address/">jQuery Address</a> plugin hash tags with this slider. Fix for <a href="https://github.com/ProLoser/AnythingSlider/issues/216">issue #216</a>.</li>
- </ul>
-
</div>
</body>
@@ -1,5 +1,5 @@
-/*
- AnythingSlider v1.7.26
+/*!
+ AnythingSlider v1.7.27
Original by Chris Coyier: http://css-tricks.com
Get the latest version: https://github.com/ProLoser/AnythingSlider
@@ -632,7 +632,7 @@
// #quote2&panel1-3&panel3-3
h = h.substring(0, (i >= 0 ? i : h.length));
// ensure the element is in the same slider
- n = ($(h).length && $(h).closest('.anythingBase')[0] === base.el) ? $(h).closest('.panel').index() : null;
+ n = ($(h).length && $(h).closest('.anythingBase')[0] === base.el) ? $(h).closest('.panel').index() + base.adj : null;
} else if (n !== null) {
// #&panel1-3&panel3-3
n = (o.hashTags) ? parseInt(n[1],10) : null;
@@ -652,7 +652,7 @@
base.slideControls = function(toggle){
var dir = (toggle) ? 'slideDown' : 'slideUp',
t1 = (toggle) ? 0 : o.animationTime,
- t2 = (toggle) ? o.animationTime: 0,
+ t2 = (toggle) ? o.animationTime : 0,
op = (toggle) ? 1 : 0,
sign = (toggle) ? 0 : 1; // 0 = visible, 1 = hidden
if (o.toggleControls) {
Oops, something went wrong.
View
@@ -1,6 +1,6 @@
{
"name": "AnythingSlider",
- "version": "1.7.26",
+ "version": "1.7.27",
"title": "AnythingSlider",
"author": {
"name": "Chris Coyier",

0 comments on commit 480c436

Please sign in to comment.