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

There is a newer version: 5.0.117
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="/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 parentAuthor = 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);
}
%>

> <% long breadcrumbsMessageId = message.getMessageId(); %>
function moveThread() { document.fm.body.value = getHTML(); submitForm(document.fm); } function toggleExplanationPost() { if (document.getElementById('addExplanationPost').checked) { document.getElementById('explanationPost').style.display = ''; } else { document.getElementById('explanationPost').style.display = 'none'; } } <% MBBreadcrumbUtil.addPortletBreadcrumbEntries(message, request, renderResponse); PortalUtil.addPortletBreadcrumbEntry(request, LanguageUtil.get(request, "move-thread"), currentURL); %> $('#selectCategoryButton').on( 'click', function(event) { Liferay.Util.selectEntity( { dialog: { constrain: true, modal: true, width: 680 }, id: 'selectCategory', title: '', uri: '' }, function(event) { var form = $(document.fm); form.fm('mbCategoryId').val(event.categoryid); form.fm('categoryName').val(_.unescape(event.name)); } ); } );




© 2015 - 2025 Weber Informatics LLC | Privacy Policy