Commit d2b525813c72910d4bf2f45a2c99e577a9c895b1

Authored by Valessio Soares de Brito
1 parent b91005a3
Exists in master and in 1 other branch add_vagrant

fix loop slider and remove button right

src/web/static/coda-slider-2.0/javascripts/jquery.coda-slider-2.0.js
... ... @@ -99,6 +99,8 @@ $.fn.codaSlider = function(settings) {
99 99 $('#coda-nav-right-' + sliderCount + ' a').click(function(){
100 100 navClicks++;
101 101 if (currentPanel == panelCount) {
  102 + this.style.display = 'none'; // Button display none;
  103 + return false;
102 104 offset = 0;
103 105 currentPanel = 1;
104 106 alterPanelHeight(0);
... ... @@ -209,6 +211,7 @@ $.fn.codaSlider = function(settings) {
209 211 function autoSlide() {
210 212 if (navClicks == 0 || !settings.autoSlideStopWhenClicked) {
211 213 if (currentPanel == panelCount) {
  214 + return false;
212 215 var offset = 0;
213 216 currentPanel = 1;
214 217 } else {
... ... @@ -231,4 +234,4 @@ $.fn.codaSlider = function(settings) {
231 234 sliderCount++;
232 235  
233 236 });
234   -};
235 237 \ No newline at end of file
  238 +};
... ...