All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.configuration.jsp Maven / Gradle / Ivy

<%--
/**
 * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */
--%>

<%@ include file="/init.jsp" %>






	
	

	
		
			
				
					
						
var data = {}; data[ '_<%= HtmlUtil.escapeJS(siteNavigationBreadcrumbDisplayContext.getPortletResource()) %>_displayStyle' ] = '<%= siteNavigationBreadcrumbDisplayContext.getDisplayStyle() %>'; data[ '_<%= HtmlUtil.escapeJS(siteNavigationBreadcrumbDisplayContext.getPortletResource()) %>_showCurrentGroup' ] = <%= siteNavigationBreadcrumbDisplayContext.isShowCurrentGroup() %>; data[ '_<%= HtmlUtil.escapeJS(siteNavigationBreadcrumbDisplayContext.getPortletResource()) %>_showGuestGroup' ] = <%= siteNavigationBreadcrumbDisplayContext.isShowGuestGroup() %>; data[ '_<%= HtmlUtil.escapeJS(siteNavigationBreadcrumbDisplayContext.getPortletResource()) %>_showLayout' ] = <%= siteNavigationBreadcrumbDisplayContext.isShowLayout() %>; data[ '_<%= HtmlUtil.escapeJS(siteNavigationBreadcrumbDisplayContext.getPortletResource()) %>_showParentGroups' ] = <%= siteNavigationBreadcrumbDisplayContext.isShowParentGroups() %>; data[ '_<%= HtmlUtil.escapeJS(siteNavigationBreadcrumbDisplayContext.getPortletResource()) %>_showPortletBreadcrumb' ] = <%= siteNavigationBreadcrumbDisplayContext.isShowPortletBreadcrumb() %>; var selectDisplayStyle = document.getElementById( 'displayStyle' ); if (selectDisplayStyle) { selectDisplayStyle.addEventListener('change', (event) => { if (selectDisplayStyle.selectedIndex > -1) { data[ '_<%= HtmlUtil.escapeJS(siteNavigationBreadcrumbDisplayContext.getPortletResource()) %>_displayStyle' ] = selectDisplayStyle.value; Liferay.Portlet.refresh( '#p_p_id_<%= HtmlUtil.escapeJS(siteNavigationBreadcrumbDisplayContext.getPortletResource()) %>_', data ); } }); } var checkBoxes = document.getElementById('checkBoxes'); if (checkBoxes) { checkBoxes.addEventListener('change', (event) => { if (event.target.classList.contains('toggle-switch-check')) { var target = event.target; data[target.dataset.key] = target.checked; Liferay.Portlet.refresh( '#p_p_id_<%= HtmlUtil.escapeJS(siteNavigationBreadcrumbDisplayContext.getPortletResource()) %>_', data ); } }); } var handler = Liferay.on('portletReady', (event) => { Liferay.Portlet.refresh( '#p_p_id_<%= HtmlUtil.escapeJS(siteNavigationBreadcrumbDisplayContext.getPortletResource()) %>_', data ); handler.detach(); handler = null; }); var destroyHandler = Liferay.on('destroyHandler', (event) => { if (handler) { handler.detach(); handler = null; } });




© 2015 - 2025 Weber Informatics LLC | Privacy Policy