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

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

There is a newer version: 3.0.8
Show newest version
<%--
/**
 * 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" %>

<%
String rootLayoutType = siteNavigationMenuDisplayContext.getRootLayoutType();
%>






	
	

	
" id="rootLayoutLevel"> <% for (int i = 0; i <= 4; i++) { %> <% } %>
" id="rootLayoutUuid"> <% for (LayoutDescription layoutDescription : siteNavigationMenuDisplayContext.getLayoutDescriptions()) { Layout layoutDescriptionLayout = LayoutLocalServiceUtil.fetchLayout(layoutDescription.getPlid()); if (layoutDescriptionLayout != null) { %> <% } } %>
<% for (int i = 1; i <= 20; i++) { %> <% } %> Liferay.Util.toggleSelectBox('rootLayoutType', 'select', 'rootLayoutUuid'); Liferay.Util.toggleSelectBox( 'rootLayoutType', function(currentValue, value) { return currentValue === 'absolute' || currentValue === 'relative'; }, 'rootLayoutLevel' );
var form = $('#fm'); var selectDisplayDepth = form.fm('displayDepth'); var selectDisplayStyle = form.fm('displayStyle'); var selectIncludedLayouts = form.fm('includedLayouts'); var selectRootLayoutLevel = form.fm('rootLayoutLevel'); var selectRootLayoutType = form.fm('rootLayoutType'); var selectRootLayoutUuid = form.fm('rootLayoutUuid'); var curPortletBoundaryId = '#p_p_id_<%= HtmlUtil.escapeJS(portletResource) %>_'; form.on( 'change', 'select', function() { var data = { displayStyle: selectDisplayStyle.val(), preview: true }; data.displayDepth = selectDisplayDepth.val(); data.includedLayouts = selectIncludedLayouts.val(); data.rootLayoutLevel = selectRootLayoutLevel.val(); data.rootLayoutType = selectRootLayoutType.val(); data.rootLayoutUuid = selectRootLayoutUuid.val(); data = Liferay.Util.ns('_<%= HtmlUtil.escapeJS(portletResource) %>_', data); Liferay.Portlet.refresh(curPortletBoundaryId, data); } );




© 2015 - 2025 Weber Informatics LLC | Privacy Policy