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:
parent
f3670c059a
commit
d882e5cafe
2 changed files with 7 additions and 1 deletions
|
@ -49,3 +49,9 @@ $(function() {
|
|||
pollLink.data('polling', !pollLink.data('polling'));
|
||||
})
|
||||
});
|
||||
|
||||
$(function() {
|
||||
$('[data-confirm]').click(function() {
|
||||
return confirm($(this).attr('data-confirm'));
|
||||
});
|
||||
});
|
||||
|
|
|
@ -13,7 +13,7 @@ h1 Queues
|
|||
td= size
|
||||
td
|
||||
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
|
||||
p No queues found.
|
||||
a href="#{root_path}" Back
|
||||
|
|
Loading…
Reference in a new issue