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

META-INF.resources.message_boards.move_thread.jsp Maven / Gradle / Ivy

<%--
/**
 * 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="/message_boards/init.jsp" %>

<%
String redirect = ParamUtil.getString(request, "redirect");

MBMessage message = (MBMessage)request.getAttribute(WebKeys.MESSAGE_BOARDS_MESSAGE);

long categoryId = MBUtil.getCategoryId(request, message);

MBCategory category = MBCategoryLocalServiceUtil.getCategory(categoryId);

category = category.toEscapedModel();

MBThread thread = message.getThread();

MBMessage curParentMessage = null;

String body = StringPool.BLANK;
boolean quote = false;
boolean splitThread = false;

boolean portletTitleBasedNavigation = GetterUtil.getBoolean(portletConfig.getInitParameter("portlet-title-based-navigation"));

String headerTitle = LanguageUtil.get(request, "move-thread");

if (portletTitleBasedNavigation) {
	portletDisplay.setShowBackIcon(true);
	portletDisplay.setURLBack(redirect);

	renderResponse.setTitle(headerTitle);
}
%>

>

<%= headerTitle %>

function () { var addExplanationPostCheckbox = document.getElementById('addExplanationPost'); if (addExplanationPostCheckbox) { return addExplanationPostCheckbox.checked; } }
<%@ include file="/message_boards/bbcode_editor.jspf" %> <%@ include file="/message_boards/html_editor.jspf" %>
var form = document.fm; function moveThread() { Liferay.Util.postForm(form, { data: { body: getHTML(), }, }); } function toggleExplanationPost() { var addExplanationPostButton = document.getElementById( 'addExplanationPost' ); var explanationPost = document.getElementById( 'explanationPost' ); if (addExplanationPostButton && explanationPost) { if (addExplanationPostButton.checked) { explanationPost.classList.remove('hide'); } else { explanationPost.classList.add('hide'); } } } var selectCategoryButton = document.getElementById( 'selectCategoryButton' ); if (selectCategoryButton) { selectCategoryButton.addEventListener('click', (event) => { Liferay.Util.openSelectionModal({ onSelect: function (event) { Liferay.Util.setFormValues(form, { categoryName: Liferay.Util.unescape(event.name), mbCategoryId: event.resourceid, }); }, selectEventName: 'selectCategory', title: '', url: '<%= selectCategoryURL %>', }); }); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy