[richfaces-issues] [JBoss JIRA] Commented: (RF-3826) modalPanel: Guide: incorrect functions call (hideModalPanel/showModalPanel)
Nick Belaevski (JIRA)
jira-events at lists.jboss.org
Sun Jun 29 17:52:31 EDT 2008
[ http://jira.jboss.com/jira/browse/RF-3826?page=comments#action_12419301 ]
Nick Belaevski commented on RF-3826:
------------------------------------
Both variants are valid. Btw. "return false" should be added to onclick after modal panel function call to prevent page from scrolling to top after click
> modalPanel: Guide: incorrect functions call (hideModalPanel/showModalPanel)
> ---------------------------------------------------------------------------
>
> Key: RF-3826
> URL: http://jira.jboss.com/jira/browse/RF-3826
> Project: RichFaces
> Issue Type: Bug
> Components: doc
> Affects Versions: 3.2.2
> Reporter: Tsikhon Kuprevich
> Assigned To: Svetlana mukhina
>
> it is now the following in Guide:
> <a href="javascript:RichFaces.hideModalPanel('form:panel')">Hide</a>
> <a href="javascript:RichFaces.showModalPanel('form:panel')">Show</a>
> But should be:
> <a onclick="Richfaces.showModalPanel('modalPanelID');" href="#">Show</a>
> <a onclick="Richfaces.hideModalPanel('modalPanelID');" href="#">Hide</a>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list