0

I've just upgraded to FogBugz 7 from 5, and with v5 I was able to modify a PHP script so that my replies started below the message I was responding to. I'm unable to find a good spot to modify FogBugz in version 7 to do this, and I wonder if anyone has done this before me, and if they could share the secret?

thanks!

-gus

flag

2 Answers

1

Here's how I ended up doing it (with a bookmarklet):

var msg = document.getElementById("sEventReply").value;

var sigIdx   = msg.indexOf("-----Original Message-----")
var sig      = msg.substring(0, sigIdx);

var restIdx  = msg.indexOf("\n\n", sigIdx);
var rest     = msg.substring(restIdx);

rest = rest.replace(/^\s\s*/, '').replace(/\s\s*$/, '');

var fromIdx  = msg.indexOf("From: ");
var fromIdxs = msg.indexOf("\n", fromIdx);
var from     = msg.substring(fromIdx + 6, fromIdxs);
var newMsg   = from + " wrote:\n" + rest + "\n\n" + sig;

document.getElementById("sEventReply").value = newMsg;
link|flag
0

Haven't done this, but the function you'll want to start with is BugViewEditableBugEventTextAreaUniversal in dlgBugEditing.was.

link|flag

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.