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

META-INF.resources.message_boards.view_message.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="/message_boards/init.jsp" %>

<%
MBMessageDisplay messageDisplay = (MBMessageDisplay)request.getAttribute(WebKeys.MESSAGE_BOARDS_MESSAGE_DISPLAY);

MBMessage message = messageDisplay.getMessage();

MBCategory category = messageDisplay.getCategory();

MBThread thread = messageDisplay.getThread();

if ((message != null) && layout.isTypeControlPanel()) {
	MBBreadcrumbUtil.addPortletBreadcrumbEntries(message, request, renderResponse);
}

AssetEntryServiceUtil.incrementViewCounter(MBMessage.class.getName(), message.getMessageId());

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

MBBreadcrumbUtil.addPortletBreadcrumbEntries(message, request, renderResponse);
%>

>
<%@ include file="/message_boards/edit_message_quick.jspf" %>
function addQuickReply(cmd, messageId) { var addQuickReplyDiv = AUI.$('#addQuickReplyDiv'); if (cmd == 'reply') { addQuickReplyDiv.removeClass('hide'); addQuickReplyDiv.find('#parentMessageId').val(messageId); var editorInput = addQuickReplyDiv.find('textarea'); var editorInstance = window[editorInput.attr('id')]; if (editorInstance) { setTimeout(AUI._.bind(editorInstance.focus, editorInstance), 50); } } else { addQuickReplyDiv.addClass('hide'); } } document.getElementById('message_' + <%= message.getMessageId() %>).scrollIntoView(true); <% MBThreadFlagLocalServiceUtil.addThreadFlag(themeDisplay.getUserId(), thread, new ServiceContext()); message = messageDisplay.getMessage(); PortalUtil.setPageSubtitle(message.getSubject(), request); PortalUtil.setPageDescription(message.getSubject(), request); List assetTags = AssetTagLocalServiceUtil.getTags(MBMessage.class.getName(), message.getMessageId()); PortalUtil.setPageKeywords(ListUtil.toString(assetTags, AssetTag.NAME_ACCESSOR), request); %>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy