(feat) UI for previously commited new feature (junk/not junk)

This commit is contained in:
Ludovic Marcotte
2016-01-22 10:32:13 -05:00
parent 7ca66b4078
commit 737d2ffccc
7 changed files with 100 additions and 15 deletions

View File

@@ -23,6 +23,20 @@ function initPopupMailer(event) {
var td = $("subject");
if (td)
document.title = td.allTextContent();
var button = $$(".tbicon_junk").first();
button.stopObserving("click");
if (window.mailboxType == "SOGoJunkFolder") {
button.title = "Mark the selected messages as not junk";
button.select('span').first().childNodes[3].nodeValue = "Not junk";
}
else {
button.title = "Mark the selected messages as junk";
button.select('span').first().childNodes[3].nodeValue = "Junk";
}
button.on("click", window.opener.onMarkOrUnmarkMessagesAsJunk.bind(button, (window.mailboxType == "SOGoJunkFolder")));
}
function onICalendarButtonClick(event) {