mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-17 09:37:02 +00:00
committed by
James Hillyerd
parent
4e8c287608
commit
8040b07c28
@@ -22,6 +22,19 @@ function deleteMessage(id) {
|
||||
})
|
||||
}
|
||||
|
||||
// Delete the mailbox
|
||||
function deleteMailBox() {
|
||||
cont = confirm("Are you sure you want delete the Mailbox?")
|
||||
if (cont == false) {
|
||||
return;
|
||||
}
|
||||
$.ajax({
|
||||
type: 'DELETE',
|
||||
url: '/api/v1/mailbox/' + mailbox,
|
||||
success: loadList
|
||||
})
|
||||
}
|
||||
|
||||
// flashTooltip temporarily changes the text of a tooltip
|
||||
function flashTooltip(el, text) {
|
||||
var prevText = $(el).attr('data-original-title');
|
||||
|
||||
@@ -57,6 +57,14 @@ $(document).ready(function() {
|
||||
onclick="loadList()">
|
||||
<span class="glyphicon glyphicon-refresh" aria-hidden="true"></span>
|
||||
</button>
|
||||
<button class="btn btn-default"
|
||||
type="button"
|
||||
data-toggle="tooltip"
|
||||
data-placement="top"
|
||||
title="Delete Mailbox"
|
||||
onclick="deleteMailBox()">
|
||||
<span class="glyphicon glyphicon-remove"></span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div id="message-list-wrapper">
|
||||
|
||||
Reference in New Issue
Block a user