if ($("#a-index").length) { $("#request-status-for-<%= @bulk_update_request.id %>").html("rejected"); } else { location.reload(); }