[
https://issues.jboss.org/browse/GTNPORTAL-2875?page=com.atlassian.jira.pl...
]
Viliam Rockai commented on GTNPORTAL-2875:
------------------------------------------
actually my real-world problem is initializing a (custom) jquery plugin on some element,
which should be the case for all plugins. Imagine you have a plugin which you apply on
element. Like creating a 'tree' (like sitemap in gatein) from <ul> list
(real world problem is adding drop-down menu functionality to the navigation portlet in
the mobile part -
https://github.com/vrockai/gatein-portal-master/blob/master/mobile-integr...
):
{code:javascript}
$('ul.myTree').tree();
{code}
ussually you have code like this in the document.ready part, but with this limitation of
gatein, after edit navigation save, the plugin is not initialized. Are we able to solve
this with the "on" method, too?
JQuery bound events don't work after "save" in the
"edit navigation"
--------------------------------------------------------------------
Key: GTNPORTAL-2875
URL:
https://issues.jboss.org/browse/GTNPORTAL-2875
Project: GateIn Portal
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 3.5.0.Final
Reporter: Viliam Rockai
Attachments: test-portlet.zip
If you add a portlet using JQuery to layout, so it's visible while using the
administration interface of "Site", you would be able to reproduce the issue.
I'm attaching the portlet as an attachment (src + war in the target directory). Put
it somewhere on the page and go to the "Site" management. If you click on the
portlet link, an alert will pop-up. When you click on the "edit navigation"
-> "save" (save even without doing any changes), the link won't respond
to clicking any more.
After the save button is pressed, the page is reloaded by ajax, but it seems that it
doesn't handle the JS correctly.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira