Initial working state
This commit is contained in:
17
data/actions.js
Normal file
17
data/actions.js
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// Empty 'em actions
|
||||
//
|
||||
"use strict";
|
||||
|
||||
// Browser actions
|
||||
function emptyEm() {
|
||||
console.log("Empty-em: Emptying.. Start");
|
||||
browser.folder_actions.emptyTrashFolders();
|
||||
browser.folder_actions.emptyJunkFolders();
|
||||
console.log("Empty-em: Emptying.. Done");
|
||||
}
|
||||
|
||||
// Handlers
|
||||
browser.browserAction.onClicked.addListener(emptyEm);
|
||||
|
||||
// vim: ts=2 sw=2 sts=2 et
|
13
data/jquery-ui.min.js
vendored
Normal file
13
data/jquery-ui.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
4
data/jquery.min.js
vendored
Normal file
4
data/jquery.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
125
data/options.html
Normal file
125
data/options.html
Normal file
@@ -0,0 +1,125 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<style type="text/css">
|
||||
body {
|
||||
font-family: sans-serif;
|
||||
}
|
||||
.option-cont {
|
||||
display: inline-box;
|
||||
vertical-align: top;
|
||||
padding-top: 1.2em;
|
||||
padding-bottom: 1.2em;
|
||||
border-bottom: thin solid #ddd;
|
||||
}
|
||||
.option-info {
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
width: 400px;
|
||||
}
|
||||
.option-val {
|
||||
display: inline-block;
|
||||
width: 50px;
|
||||
}
|
||||
.option-head {
|
||||
font-weight: bold;
|
||||
font-size: medium;
|
||||
}
|
||||
.option-desc {
|
||||
font-size: small;
|
||||
margin-top: 1.2em;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div style="width: 600px">
|
||||
<label>
|
||||
<div class="option-cont">
|
||||
<div class="option-info">
|
||||
<div class="option-head">Override folder's confirmation setting</div>
|
||||
<div class="option-desc">
|
||||
By default, Thunderbird will prompt you to confirm deletion of selected
|
||||
folders. Check this box to override this and suppress the conform
|
||||
dialog
|
||||
</div>
|
||||
</div>
|
||||
<div class="option-val">
|
||||
<input type="checkbox" id="overrideDeleteConfirm" style="margin-bottom:1em"></input>
|
||||
</div>
|
||||
</div>
|
||||
</label>
|
||||
<label>
|
||||
<div class="option-cont">
|
||||
<div class="option-info">
|
||||
<div class="option-head">Include Trash folders</div>
|
||||
<div class="option-desc">
|
||||
Include Trash folders in the process of emptying
|
||||
</div>
|
||||
</div>
|
||||
<div class="option-val">
|
||||
<input type="checkbox" id="selectTrashDelete" style="margin-bottom:1em"></input>
|
||||
</div>
|
||||
</div>
|
||||
</label>
|
||||
<label>
|
||||
<div class="option-cont">
|
||||
<div class="option-info">
|
||||
<div class="option-head">Include Junk folders</div>
|
||||
<div class="option-desc">
|
||||
Include Junk folders in the process of emptying
|
||||
</div>
|
||||
</div>
|
||||
<div class="option-val">
|
||||
<input type="checkbox" id="selectJunkDelete" style="margin-bottom:1em"></input>
|
||||
</div>
|
||||
</div>
|
||||
</label>
|
||||
<label>
|
||||
<div class="option-cont">
|
||||
<div class="option-info">
|
||||
<div class="option-head">Enable console debug messages</div>
|
||||
<div class="option-desc">
|
||||
Check this box to enable debug messages in Error Console. Provide
|
||||
these messages along with bug reports you file
|
||||
</div>
|
||||
</div>
|
||||
<div class="option-val">
|
||||
<input type="checkbox" id="consoleDebug" style="margin-bottom:1em"></input>
|
||||
</div>
|
||||
</div>
|
||||
</label>
|
||||
<label>
|
||||
<div class="option-cont">
|
||||
<div class="option-info">
|
||||
<div class="option-head">Disable done notification</div>
|
||||
<div class="option-desc">
|
||||
Check this box to disable notification that appears after all
|
||||
configured folders have been emptied
|
||||
</div>
|
||||
</div>
|
||||
<div class="option-val">
|
||||
<input type="checkbox" id="disableDoneNotification" style="margin-bottom:1em"></input>
|
||||
</div>
|
||||
</div>
|
||||
</label>
|
||||
<label>
|
||||
<div class="option-cont">
|
||||
<div class="option-info">
|
||||
<div class="option-head">Also compact emptied folders</div>
|
||||
<div class="option-desc">
|
||||
Also compact the folder that was emptied
|
||||
</div>
|
||||
</div>
|
||||
<div class="option-val">
|
||||
<input type="checkbox" id="alsoCompact" style="margin-bottom:1em"></input>
|
||||
</div>
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<script src="jquery.min.js"></script>
|
||||
<script src="options.js"></script>
|
||||
</body>
|
||||
</html>
|
3
data/options.js
Normal file
3
data/options.js
Normal file
@@ -0,0 +1,3 @@
|
||||
// -----------------------------------------------
|
||||
// Options UI and handling
|
||||
// -----------------------------------------------
|
Reference in New Issue
Block a user