//= require hashgrid 

$(function() {

  // Focus first form field with an error on it.
  $(".m-form__field--error").first().children(".m-form__input").focus();

  // Fade out notice after 10 seconds.
  $(".m-notice--confirm, .m-notice--notice").delay(10000).fadeOut("slow");

  // Function calls.
  
  unmaskPassword();

 });

// Toggle masked/unmasked password fields. 

var unmaskPassword = function () {

  $('.m-form__input--password').attr('type', 'text');
  $('.js-masking-toggle').text("Hide")

  $('.js-masking-toggle').click(function() {

    var input = $(this).prev('input');
    var inputType = $(this).prev('input').attr('type');

    if (inputType === 'text') {
      input.attr('type', 'password');
    } else {
      input.attr('type', 'text');
    }

    // Change link text.

    var linkText = $('.js-masking-toggle').text();

    if (linkText === 'Hide') {
      $('.js-masking-toggle').text("Show");
    } else {
      $('.js-masking-toggle').text("Hide");
    }

  }); 
}


@@ -494,16 +494,39 @@
 (%22Hide%22)
+.attr('tabindex','-1');
 %0A%0A  $('.
@@ -1002,16 +1002,35 @@
 %0A    %7D%0A%0A
+    return false;%0A%0A
   %7D); %0A%7D

remove masking toggle from tabindex and prevent the default action