mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-19 05:25:55 +00:00
(feat) UI for previously commited new feature (junk/not junk)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user