BURs: add edit and reject links to the BUR show page (#3824).

This commit is contained in:
evazion
2019-01-15 21:18:00 -06:00
parent a284d3fb4a
commit 6b167d6055
5 changed files with 26 additions and 15 deletions

View File

@@ -1,5 +1,9 @@
<% if @bulk_update_request.errors.any? %>
$(window).trigger("danbooru:error", <%= j @bulk_update_request.errors.full_messages.join(',') %>);
<% else %>
$("#request-status-for-<%= @bulk_update_request.id %>").html("queued");
if ($("#a-index").length) {
$("#request-status-for-<%= @bulk_update_request.id %>").html("queued");
} else {
location.reload();
}
<% end %>