Sha256: f558ce293dd77e5c5a575fc1dfaf1b1ccc55ac0047f69392f579ab863e2757c0
Contents?: true
Size: 1.54 KB
Versions: 1
Compression:
Stored size: 1.54 KB
Contents
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path. // // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the // the compiled file. // // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD // GO AFTER THE REQUIRES BELOW. // #= require jquery //= require_self $(function(){ $('.js-resend-email').click(function(e){ e.preventDefault() var email = $(this).data('email') $.ajax({ url: '/applicants/resend_confirmation_email', method: 'POST', data: {authenticity_token: $('meta[name="csrf-token"]').attr('content'), email: email}, dataType: 'json', success: function(response){ $('#welcome_back').show().html(response.message); }, error: function(response){ $('#welcome_back').show().append("<div class='alert alert-error'>" + response.message + "</div>"); } }); }); }); $('#example_video').on('hidden', function () { $("#example_video iframe").attr("src", $("#example_video iframe").attr("src")) }) $('form.submit-once').submit(function(e){ if($(this).hasClass('form-submitted')){ e.preventDefault(); return; } $(this).addClass('form-submitted'); $(this).find("input[type=submit]").attr('disabled', 'disabled'); });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
applicants-0.11.0 | app/assets/javascripts/applicants/application.js |