Просмотр исходного кода

[producer] Correction bug fonction absente (boulange_scroll)

dev
Guillaume Bourgeois 5 лет назад
Родитель
Сommit
5cf58d220a
2 измененных файлов: 9 добавлений и 2 удалений
  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 Просмотреть файл

@@ -97,3 +97,10 @@ function opendistrib_fix_width_sidebar() {
});
$('#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 Просмотреть файл

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

Загрузка…
Отмена
Сохранить