rcmail.add_element(elm, 'messagemenu')
appends elm
to wrong element
#4791
Labels
Milestone
rcmail.add_element(elm, 'messagemenu')
appends elm
to wrong element
#4791
Reported by pavel zubkou on 11 Mar 2015 21:06 UTC as Trac ticket #1490313
Issue can be seen on larry skin.
Steps to reproduce
elm
be'<li>Foo</li>'
rcmail.add_element(elm, 'messagemenu')
on initelm
will be appended todiv#messagemenu
, not the container inside<ul>
Expected result
elm
is expected to be appended to<ul>
which has#messagemenu-menu
inlarry
skin.This expected result can be received via usage of
rcube_plugin_api::add_content()
on server side. My expectation is that these two methods do the same, namely append element to container.Actual result
elm
is appended todiv#messagemenu
, thus placing it outside<ul>
containing<roundcube:container name="messagemenu" id="messagemenu" />
. Which is non intuitive.Migrated-From: http://trac.roundcube.net/ticket/1490313
The text was updated successfully, but these errors were encountered: