
META-INF.resources.blogs_aggregator.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="/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, '" + renderResponse.getNamespace() + "');";
%>
AUI.$('# selectOrganizationButton').on(
'click',
function(event) {
Liferay.Util.selectEntity(
{
dialog: {
constrain: true,
modal: true
},
<%
String portletId = PortletProviderUtil.getPortletId(User.class.getName(), PortletProvider.Action.VIEW);
%>
id: '<%= PortalUtil.getPortletNamespace(portletId) %>selectOrganization',
title: ' ',
<%
PortletURL selectOrganizationURL = PortletProviderUtil.getPortletURL(request, Organization.class.getName(), PortletProvider.Action.BROWSE);
selectOrganizationURL.setParameter("tabs1", "organizations");
selectOrganizationURL.setWindowState(LiferayWindowState.POP_UP);
%>
uri: '<%= selectOrganizationURL.toString() %>'
},
function(event) {
document. fm. organizationId.value = event.organizationid;
document.getElementById(' organizationName').value = event.name;
Liferay.Util.toggleDisabled('# removeOrganizationButton', false);
}
);
}
);
var selectionMethod = AUI.$('# selectionMethod');
selectionMethod.on(
'change',
function() {
var usersSelectionOptions = AUI.$('# usersSelectionOptions');
var showUsersSelectionOptions = !(selectionMethod.val() === 'users');
usersSelectionOptions.toggleClass('hide', showUsersSelectionOptions);
}
);
© 2015 - 2025 Weber Informatics LLC | Privacy Policy