Plugin Developer DiscussionDiscussion for FogBugz Plugin developers |
|
The only way I can think to do this is to send down a <script> tag in one of the other interfaces used in BugEdit: IPluginBugEventDisplay, IPluginBugLink, IPluginBugDisplay. You'll have to play around to see if this will actually work, and the timing might be tough because the scripts might run before the page is fully loaded.
Let me know how it goes.
I have been using this JS function to detect edit mode in my plug-in.
It works for now, but is subject to break in future updates of FB if they change the XHTML of the page. function isEditMode() { // this may need to be updated if FB changes HTML // or behavior, but it is necessary until this //functionality is available in the API. return ($("textarea[name=sEvent]").length > 0); }
The only way I could figure out how to do this is by setting a timeout to fire repeatedly checking if the page was in edit mode (people wanted to do stuff on page load for the edit page using BugMonkey, but alas, the edit page is not really a page load... its an ajax transformation)
|
Powered by FogBugz