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

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

There is a newer version: 6.0.134
Show newest version
<%--
/**
 * SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
 * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
 */
--%>

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

<%
String organizationName = StringPool.BLANK;

Organization organization = null;

if (organizationId > 0) {
	organization = OrganizationLocalServiceUtil.getOrganization(organizationId);

	organizationName = organization.getName();
}
%>






	
	
	

	
		
			
				
				
			

			
" id="usersSelectionOptions"> <% String taglibRemoveFolder = "Liferay.Util.removeEntitySelection('organizationId', 'organizationName', this, '" + liferayPortletResponse.getNamespace() + "');"; %>
var selectOrganizationButton = document.getElementById( 'selectOrganizationButton' ); selectOrganizationButton.addEventListener( 'click', (event) => { Liferay.Util.openSelectionModal({ onSelect: function (event) { var form = document.getElementById('fm'); if (form) { const valueJSON = JSON.parse(event.value); var organizationId = form.querySelector( '#organizationId' ); if (organizationId) { organizationId.setAttribute( 'value', valueJSON.organizationId ); } var organizationName = form.querySelector( '#organizationName' ); if (organizationName) { organizationName.setAttribute('value', valueJSON.name); } } Liferay.Util.toggleDisabled( '#removeOrganizationButton', false ); }, selectEventName: 'selectOrganization', title: '', url: '<%= blogsAggregatorViewDisplayContext.getOrganizationItemSelectorURL() %>', }); } ); var selectionMethodElement = document.getElementById( 'selectionMethod' ); if (selectionMethodElement) { selectionMethodElement.addEventListener('change', (event) => { var usersSelectionOptions = document.getElementById( 'usersSelectionOptions' ); if (usersSelectionOptions) { var showUsersSelectionOptions = !( selectionMethodElement.value === 'users' ); usersSelectionOptions.classList.toggle( 'hide', showUsersSelectionOptions ); } }); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy