mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-19 02:08:11 +00:00
(feat) UI for previously commited new feature (junk/not junk)
This commit is contained in:
1 parent
7ca66b4078
commit
737d2ffccc
7 files changed
+100
-15
No files matched your search
@@ -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