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() {
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() {
this.slidesContainer.css({
height: this.slides.height()

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

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