Skip to content

Commit

Permalink
fixed undefined + released 1.2.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Syl committed Dec 3, 2013
1 parent dd3601b commit 215d877
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 17 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

## Changelog

03/12/2013 - **1.2.3.1**

* fixed undefined if no overlay

03/12/2013 - **1.2.3**

* added 5 callbacks in the new 'events' option: 'thumbClick', 'prev', 'pause', 'play' and 'next'
Expand Down
2 changes: 1 addition & 1 deletion assets/less/desoslide/jquery.desoslide.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Version 1.2.3
* Version 1.2.3.1
* jQuery: desoSlide plugin - jquery.desoslide.less
* Copyright - 2013 - https://github.com/sylouuu/desoslide
* This source code is under the MIT License
Expand Down
2 changes: 1 addition & 1 deletion desoslide.jquery.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"slider",
"thumbnail"
],
"version": "1.2.3",
"version": "1.2.3.1",
"author": {
"name": "sylouuu",
"url": "https://github.com/sylouuu"
Expand Down
4 changes: 2 additions & 2 deletions dist/css/jquery.desoslide.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* Version 1.2.3
* jQuery: desoSlide plugin - jquery.desoslide.css
* Version 1.2.3.1
* jQuery: desoSlide plugin - jquery.desoslide.less
* Copyright - 2013 - https://github.com/sylouuu/desoslide
* This source code is under the MIT License
*/
Expand Down
26 changes: 16 additions & 10 deletions dist/js/jquery.desoslide.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Version 1.2.3
* Version 1.2.3.1
* jQuery: desoSlide plugin - jquery.desoslide.js
* Copyright - 2013 - https://github.com/sylouuu/desoslide
* This source code is under the MIT License
Expand Down Expand Up @@ -574,13 +574,15 @@

$controls_wrapper = $(p.main.container).find('.desoSlide-controls-wrapper');

/**
* Triggering "play" if autostart
*/
if(p.auto.start) {
$controls_wrapper.find('a[href="#play"]').hide().parent().find('a[href="#pause"]').show();
} else {
$controls_wrapper.find('a[href="#pause"]').hide().parent().find('a[href="#play"]').show();
if($controls_wrapper.length) {
/**
* Triggering "play" if autostart
*/
if(p.auto.start) {
$controls_wrapper.find('a[href="#play"]').hide().parent().find('a[href="#pause"]').show();
} else {
$controls_wrapper.find('a[href="#pause"]').hide().parent().find('a[href="#play"]').show();
}
}
},

Expand All @@ -594,7 +596,9 @@
clearTimeout(timer);
current_img--;

$controls_wrapper.find('a[href="#pause"]').hide().parent().find('a[href="#play"]').show();
if($controls_wrapper) {
$controls_wrapper.find('a[href="#pause"]').hide().parent().find('a[href="#play"]').show();
}
}
},

Expand All @@ -611,7 +615,9 @@

app.outEffect();

$controls_wrapper.find('a[href="#play"]').hide().parent().find('a[href="#pause"]').show();
if($controls_wrapper) {
$controls_wrapper.find('a[href="#play"]').hide().parent().find('a[href="#pause"]').show();
}
}
},

Expand Down
4 changes: 2 additions & 2 deletions dist/js/jquery.desoslide.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ <h3>... with thumbnails!</h3>
<span class="glyphicon glyphicon-download-alt"></span> Download
</a>
</li>
<li>Version 1.2.3</li>
<li>Version 1.2.3.1</li>
</ul>
</div>
<!-- [END] JUMBOTRON -->
Expand Down

0 comments on commit 215d877

Please sign in to comment.