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

META-INF.resources.ddm_template.edit_basic_info.jsp Maven / Gradle / Ivy

There is a newer version: 5.0.177
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" %>

<%
JournalEditDDMTemplateDisplayContext journalEditDDMTemplateDisplayContext = new JournalEditDDMTemplateDisplayContext(request, renderResponse);

DDMTemplate ddmTemplate = journalEditDDMTemplateDisplayContext.getDDMTemplate();

DDMStructure ddmStructure = journalEditDDMTemplateDisplayContext.getDDMStructure();
%>



" id="<%= liferayPortletResponse.getNamespace() %>ddmStructure" name="structure" readonly value="<%= (ddmStructure != null) ? ddmStructure.getName(locale) : StringPool.BLANK %>" class="form-control lfr-input-resource" />
<% Portlet portlet = PortletLocalServiceUtil.getPortletById(portletDisplay.getId()); %> Liferay.Util.toggleBoxes( 'cacheable', '-cacheableWarningMessage' ); const selectDDMStructure = document.getElementById( 'selectDDMStructure' ); const ddmStructure = document.getElementById( 'ddmStructure' ); const onClick = (event) => { Liferay.Util.openSelectionModal({ onSelect: function (selectedItem) { const itemValue = JSON.parse(selectedItem.value); if ( document.fm.classPK .value != itemValue.ddmstructureid ) { document.fm.classPK.value = itemValue.ddmstructureid; Liferay.fire('refreshEditor'); } }, selectEventName: 'selectDDMStructure', title: '<%= UnicodeLanguageUtil.get(request, "structures") %>', url: '<%= journalDisplayContext.getSelectDDMStructureURL() %>>', }); }; if (selectDDMStructure) { selectDDMStructure.addEventListener('click', onClick); } if (ddmStructure) { ddmStructure.addEventListener('click', onClick); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy