Permalink
Browse files

Add ability to "rename" a thread, appending '(was: "previous")'

  • Loading branch information...
lamby committed Nov 21, 2018
1 parent d0b9443 commit 8c2cd36b26fcf21c13cad3574ba5abfd3c5107be
Showing with 23 additions and 0 deletions.
  1. +23 −0 js/main.js
@@ -146,6 +146,29 @@ function FastMailEnhancementSuite(options) {
});
});

$.always(function () {
$.setInterval(function() {
var wrapper = $('.v-Compose-addCcBcc').onceOnly();

if (wrapper.length == 0) {
return;
}

wrapper
.find('a:first')
.clone()
.text("Rename thread")
.prependTo(wrapper)
.on('click', function() {
var subject = prompt("Enter new subject name");

if (subject != null) {
$.setSubject(subject + " (was: \"" + $.getSubject() + "\")");
}
});
}, 500);
});

$.option('forgotten_attachment', function () {
/*
I have attached

0 comments on commit 8c2cd36

Please sign in to comment.