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