[ 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 _______________________________________________ richfaces-issues mailing list [email protected] https://lists.jboss.org/mailman/listinfo/richfaces-issues
