Bladeren bron

Merge branch 'dev'

master
Guillaume Bourgeois 5 jaren geleden
bovenliggende
commit
2d56526495
3 gewijzigde bestanden met toevoegingen van 19 en 3 verwijderingen
  1. +14
    -0
      frontend/web/js/frontend.js
  2. +4
    -2
      producer/controllers/OrderController.php
  3. +1
    -1
      producer/web/js/producer.js

+ 14
- 0
frontend/web/js/frontend.js Bestand weergeven

@@ -46,6 +46,11 @@ function opendistrib_signup()
$('#option-user, #option-producer').change(function() {
opendistrib_signup_fields_producer() ;
}) ;
opendistrib_signup_code_producer() ;
$('#signupform-id_producer').change(function() {
opendistrib_signup_code_producer() ;
}) ;
}
}

@@ -62,4 +67,13 @@ function opendistrib_signup_fields_producer()
}
}

function opendistrib_signup_code_producer() {
if($('#signupform-id_producer option:selected').hasClass('lock')){
$('#bloc-code-acces').fadeIn() ;
}
else {
$('#bloc-code-acces').hide() ;
}
}



+ 4
- 2
producer/controllers/OrderController.php Bestand weergeven

@@ -570,7 +570,7 @@ class OrderController extends ProducerBaseController
$favoritePointSale = User::getCurrent()->getFavoritePointSale() ;
if($favoritePointSale) {
/*if($favoritePointSale) {
$newPointSaleArray = [] ;
foreach($pointsSaleArray as $pointSale) {
@@ -588,7 +588,9 @@ class OrderController extends ProducerBaseController
}
else {
$newPointSaleArray = $pointsSaleArray ;
}
}*/
$newPointSaleArray = $pointsSaleArray ;
$json['points_sale'] = $newPointSaleArray;

+ 1
- 1
producer/web/js/producer.js Bestand weergeven

@@ -111,4 +111,4 @@ function opendistrib_base_url(with_slug) {
base_url += $('meta[name=slug-producer]').attr('content')+'/' ;
}
return base_url ;
}
}

Laden…
Annuleren
Opslaan