Skip to content

Commit

Permalink
adds currentPanel class to the current panel
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Batdorf committed Nov 9, 2013
1 parent 486bedb commit 6578b17
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 6 deletions.
3 changes: 3 additions & 0 deletions README.markdown
Expand Up @@ -157,6 +157,9 @@ Default settings vary on custom builds

Versions
--------
Version 2.0.12
- Adds currentPanel class to the current panel

Version 2.0.11
- Had to revert a autoslide bug fix

Expand Down
2 changes: 1 addition & 1 deletion index.html
Expand Up @@ -69,7 +69,7 @@ <h2 class="title">by Kevin Batdorf</h2>
<script src="./examples/assets/prism.js"></script>
<script src="./js/jquery.easing.1.3.js"></script>
<script src="./js/jquery.touchSwipe.min.js"></script>
<script src="./js/jquery.liquid-slider.min.js"></script>
<script src="./js/jquery.liquid-slider.js"></script>
<script>
$('#main-slider').liquidSlider();

Expand Down
6 changes: 5 additions & 1 deletion js/jquery.liquid-slider.js
@@ -1,5 +1,5 @@
/*!
* Liquid Slider v2.0.11
* Liquid Slider v2.0.12
* http://liquidslider.com
* GPL license
*/
Expand Down Expand Up @@ -730,6 +730,10 @@ if (typeof Object.create !== 'function') {
}
});
}
// Set current panel class
self.$panelClass.eq(self.nextPanel)
.addClass('currentPanel')
.siblings().removeClass('currentPanel');
},

sanatizeNumber: function(panel) {
Expand Down
4 changes: 2 additions & 2 deletions js/jquery.liquid-slider.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion liquidslider.jquery.json
Expand Up @@ -12,7 +12,7 @@
"slideshow",
"effect"
],
"version": "2.0.11",
"version": "2.0.12",
"author": {
"name": "Kevin Batdorf",
"url": "http://www.kevinbatdorf.com"
Expand Down
2 changes: 1 addition & 1 deletion modules/footer.js

Large diffs are not rendered by default.

0 comments on commit 6578b17

Please sign in to comment.