You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

switchmerchant_admin.js 614B

123456789101112131415161718
  1. $(document).ready(function() {
  2. initSwitchMerchantAdmin() ;
  3. }) ;
  4. function initSwitchMerchantAdmin() {
  5. let idMerchant = $('#switch_merchant_form_merchant').val() ;
  6. let nameVisitMerchantSessionStorage = 'visit_merchant_'+idMerchant ;
  7. let $modalSwitchMerchant = $('#carac-modal-switch-merchant') ;
  8. if($modalSwitchMerchant.length && !sessionStorage.getItem(nameVisitMerchantSessionStorage)) {
  9. $('#carac-modal-switch-merchant').modal('show') ;
  10. }
  11. $('#carac-button-visit-merchant').click(function() {
  12. sessionStorage.setItem(nameVisitMerchantSessionStorage, true);
  13. }) ;
  14. }