1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Added a prompt when deleting a queue.

This commit is contained in:
Mario Visic 2012-08-23 18:49:54 +08:00
parent f3670c059a
commit d882e5cafe
2 changed files with 7 additions and 1 deletions

View file

@ -49,3 +49,9 @@ $(function() {
pollLink.data('polling', !pollLink.data('polling')); pollLink.data('polling', !pollLink.data('polling'));
}) })
}); });
$(function() {
$('[data-confirm]').click(function() {
return confirm($(this).attr('data-confirm'));
});
});

View file

@ -13,7 +13,7 @@ h1 Queues
td= size td= size
td td
form action="#{root_path}queues/#{queue}" method="post" form action="#{root_path}queues/#{queue}" method="post"
input.btn.btn-danger type="submit" name="delete" value="Delete" input.btn.btn-danger type="submit" name="delete" value="Delete" data-confirm="Are you sure you want to delete the #{queue} queue?"
- else - else
p No queues found. p No queues found.
a href="#{root_path}" Back a href="#{root_path}" Back