<commit_before>$(document).on('page:change', function(){

  $('.customer-signup-link').on('click', function(e){
      e.preventDefault();
      $('.signup-modal').modal({
      overlayClose: true,
      onOpen: function (dialog) {
        dialog.overlay.fadeIn('slow', function () {
          dialog.container.slideDown('slow', function () {
            dialog.data.fadeIn('slow');
          });
        });
      },
      onClose: function (dialog) {
        dialog.container.slideUp('slow', function () {
          dialog.overlay.fadeOut('slow', function () {
            dialog.data.fadeIn('slow');
          });
        });
      }
    });
    })

  $('.customer-login-link').on('click', function(e){
    e.preventDefault();
    $('.login-modal').modal({
      overlayClose: true,
      onOpen: function (dialog) {
        dialog.overlay.fadeIn('slow', function () {
          dialog.container.slideDown('slow', function () {
            dialog.data.fadeIn('slow');
          });
        });
      },
      onClose: function (dialog) {
        dialog.container.slideUp('slow', function () {
          dialog.overlay.fadeOut('slow', function () {
            dialog.data.fadeIn('slow');
          });
        });
      }
    });
  })

});
<commit_msg>Fix close callback for homepage<commit_after>$(document).on('page:change', function(){

  $('.customer-signup-link').on('click', function(e){
      e.preventDefault();
      $('.signup-modal').modal({
      overlayClose: true,
      onOpen: function (dialog) {
        dialog.overlay.fadeIn('slow', function () {
          dialog.container.slideDown('slow', function () {
            dialog.data.fadeIn('slow')
          });
        });
      },
      onClose: function (dialog) {
        dialog.container.slideUp('slow', function () {
          dialog.overlay.fadeOut('slow', function () {
            dialog.data.fadeIn('slow', function(){
              $.modal.close();
            });
          });
        });
      }
    });
    })

  $('.customer-login-link').on('click', function(e){
    e.preventDefault();
    $('.login-modal').modal({
      overlayClose: true,
      onOpen: function (dialog) {
        dialog.overlay.fadeIn('slow', function () {
          dialog.container.slideDown('slow', function () {
            dialog.data.fadeIn('slow');
          });
        });
      },
      onClose: function (dialog) {
        dialog.container.slideUp('slow', function () {
          dialog.overlay.fadeOut('slow', function () {
            dialog.data.fadeIn('slow', function(){
              $.modal.close();
            });
          });
        });
      }
    });
  })

});

{'fraction_non_alphanumeric': 0.1881862930708065, 'fraction_numerical': 0.0, 'mean_word_length': 1.9322974472807992, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1439353', 'n_tokens_mistral': 780, 'n_tokens_neox': 734, 'n_words': 100}