js: clean up notice/error messaging.

This commit is contained in:
evazion
2019-08-14 01:46:44 -05:00
parent e000bdb861
commit 8d07ad7390
22 changed files with 50 additions and 64 deletions

View File

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