Hello everybody.
While I am writing my first RC plugin I have two questions that where not answered by the plugin documentation, and I also could not find examples in some plugins I analyzed:
ui.js from my plugin JS code. On a user action I would like to modify the window arrangement slightly (remove the attachment section in compose view) and therefor let the view get rendered again. But I did not find a way on how to call it from my plugin code.
created? I would like to hide the attachment section on the composer view by default, so same scenario as above: How can I detect in the JS code in my plugin that a new message shall be composed, and how can I call "layout_composeview()" from the plugin?
A customer has several employees working on low screen resolution, but only sending mails with attachments very rarely. So he would like to have the attachment section hidden by default, 260px more space for e-mail composing, and an option in the composeoptions to display the attachment section if really needed.
Any help is really appreciated!
Thanks in advance, Daniel
On 06/01/2014 09:03 PM, Daniel Rauer wrote:
- It would be helpful if I could call "layout_composeview()" defined in
ui.js from my plugin JS code. On a user action I would like to modify the window arrangement slightly (remove the attachment section in compose view) and therefor let the view get rendered again. But I did not find a way on how to call it from my plugin code.
This function exists only in larry skin, so it's not good to depend on it. Anyway, it is called on window resize. So, you can do $(window).resize().
- Is there an event I overlooked that is fired when a new message is
created? I would like to hide the attachment section on the composer view by default, so same scenario as above: How can I detect in the JS code in my plugin that a new message shall be composed, and how can I call "layout_composeview()" from the plugin?
window.onload
A customer has several employees working on low screen resolution, but only sending mails with attachments very rarely. So he would like to have the attachment section hidden by default, 260px more space for e-mail composing, and an option in the composeoptions to display the attachment section if really needed.
We have a ticket for this, there was even a pull request.