Browse Source

fix slider

pull/1/head
Nicolae Claudius 13 years ago
parent
commit
78cada6269
  1. 9
      app/assets/javascripts/slides.js
  2. 6
      app/views/pages/home/_slides.html.erb

9
app/assets/javascripts/slides.js

@ -692,15 +692,6 @@
_loaded: function() { _loaded: function() {
if ( this.options.responsive ) { if ( this.options.responsive ) {
// TODO: cleanup and condense
this.slidesContainer.css({
height: this.slides.height()
});
this.slidesControl.css({
height: this.slides.height()
});
$(window).resize( $.proxy(function() { $(window).resize( $.proxy(function() {
this.slidesContainer.css({ this.slidesContainer.css({
height: this.slides.height() height: this.slides.height()

6
app/views/pages/home/_slides.html.erb

@ -9,8 +9,7 @@
</div> </div>
<script type="text/javascript"> <script type="text/javascript">
$("#slides") $("#slides").slides({
.slides({
navigation: false, navigation: false,
responsive: true, responsive: true,
slide: { slide: {
@ -21,6 +20,5 @@
}, },
playInterval: 8000, playInterval: 8000,
pauseInterval: 16000 pauseInterval: 16000
}) }).slides('play');
.slides('play');
</script> </script>
Loading…
Cancel
Save