Sha256: 5579cbe2ca49d49a3ff98955e67fe0e3923ac95b63efdc0b81926880b6e56b12
Contents?: true
Size: 608 Bytes
Versions: 3
Compression:
Stored size: 608 Bytes
Contents
// Place all the behaviors and hooks related to the matching controller here. // All this logic will automatically be available in application.js. $(document).ready(function(){ $('.reject-btn').click(function(e){ var msg = ''; while (msg == '' || msg == null) { msg = prompt("Reason for Rejection:"); if (msg == null) { alert("You must enter a reason for your rejection."); } } window.location = $(this).data('reject-path') + "?reject_message=" + encodeURI(msg); return false; }); });
Version data entries
3 entries across 3 versions & 1 rubygems