Browse Source

[producer] Correction bug fonction absente (boulange_scroll)

dev
Guillaume Bourgeois 5 years ago
parent
commit
5cf58d220a
2 changed files with 9 additions and 2 deletions
  1. +7
    -0
      producer/web/js/producer.js
  2. +2
    -2
      producer/web/js/vuejs/subscription-form.js

+ 7
- 0
producer/web/js/producer.js View File

}); });
$('#left .fixed').show() ; $('#left .fixed').show() ;
} }

function opendistrib_scroll(id) {
if($("#"+id).size())
$('html,body').animate({
scrollTop: $("#"+id).offset().top},
1000);
}

+ 2
- 2
producer/web/js/vuejs/subscription-form.js View File

this.pointSaleActive = this.getPointSale(idPointSale) ; this.pointSaleActive = this.getPointSale(idPointSale) ;
this.idPointSaleActive = idPointSale ; this.idPointSaleActive = idPointSale ;
boulange_scroll('step-date') ;
opendistrib_scroll('step-date') ;
}, },
getPointSale: function(idPointSale) { getPointSale: function(idPointSale) {
for(var key in this.pointsSale) { for(var key in this.pointsSale) {
if(count == 1 && this.lastCountDays == 0) { if(count == 1 && this.lastCountDays == 0) {
this.lastCountDays = count ; this.lastCountDays = count ;
boulange_scroll('step-days') ;
opendistrib_scroll('step-days') ;
} }
}, },
checkProductAvailable: function(product) { checkProductAvailable: function(product) {

Loading…
Cancel
Save