mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-18 10:07:02 +00:00
Change to trash glyph for delete mailbox
This commit is contained in:
@@ -22,17 +22,15 @@ function deleteMessage(id) {
|
||||
})
|
||||
}
|
||||
|
||||
// Delete the mailbox
|
||||
function deleteMailBox() {
|
||||
cont = confirm("Are you sure you want delete the Mailbox?")
|
||||
if (cont == false) {
|
||||
return;
|
||||
// deleteMailbox clears the mailbox
|
||||
function deleteMailbox() {
|
||||
if (confirm("Are you sure you want delete this mailbox?")) {
|
||||
$.ajax({
|
||||
type: 'DELETE',
|
||||
url: '/api/v1/mailbox/' + mailbox,
|
||||
success: loadList
|
||||
})
|
||||
}
|
||||
$.ajax({
|
||||
type: 'DELETE',
|
||||
url: '/api/v1/mailbox/' + mailbox,
|
||||
success: loadList
|
||||
})
|
||||
}
|
||||
|
||||
// flashTooltip temporarily changes the text of a tooltip
|
||||
|
||||
@@ -62,8 +62,8 @@ $(document).ready(function() {
|
||||
data-toggle="tooltip"
|
||||
data-placement="top"
|
||||
title="Delete Mailbox"
|
||||
onclick="deleteMailBox()">
|
||||
<span class="glyphicon glyphicon-remove"></span>
|
||||
onclick="deleteMailbox()">
|
||||
<span class="glyphicon glyphicon-trash"></span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user