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

Version Path
pivotal_reporter-0.7.2 app/assets/javascripts/pivotal_reporter/stories.js
pivotal_reporter-0.7.1 app/assets/javascripts/pivotal_reporter/stories.js
pivotal_reporter-0.7.0 app/assets/javascripts/pivotal_reporter/stories.js