which <option> gets the "selected" attribute?
within the hook function to determine where it's being called? Checking rcmail::get_instance->task and rcmail::get_instance()->show narrows it down some, but those values aren't sufficient to distinguish between the left sidebar folder list (which I don't want to alter) and the "Move to..." select box (which I do want to alter).
What I'm trying to do is check current message attributes (from, subject) and change the selection in the "Move to..." drop down accordingly. _______________________________________________ List info: http://lists.roundcube.net/dev/ BT/aba52c80
On 29.02.2012 00:13, Andy Theuninck wrote:
- Is there anything I can set/alter in the return value to change
which <option> gets the "selected" attribute?
Possible with r5926. Without this you can do this client-side.
- This seems really basic, but what all do I look at to figure out
within the hook function to determine where it's being called? Checking rcmail::get_instance->task and rcmail::get_instance()->show narrows it down some, but those values aren't sufficient to distinguish between the left sidebar folder list (which I don't want to alter) and the "Move to..." select box (which I do want to alter).
What I'm trying to do is check current message attributes (from, subject) and change the selection in the "Move to..." drop down accordingly.
If you change the selection you'll need to add "Move to" button.