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

META-INF.resources.move_entries.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" %>

<%
JournalMoveEntriesDisplayContext journalMovesEntriesDisplayContext = new JournalMoveEntriesDisplayContext(liferayPortletRequest, liferayPortletResponse, currentURL);
%>


	



	
	

	
		
		
		

		
			

				<%
				List validMoveFolders = journalMovesEntriesDisplayContext.getValidMoveFolders();
				%>

				
					

    <% for (JournalFolder folder : validMoveFolders) { %>
  • <%= HtmlUtil.escape(folder.getName()) %>
  • <% } %>
<% List invalidMoveFolders = journalMovesEntriesDisplayContext.getInvalidMoveFolders(); %>

    <% for (JournalFolder folder : invalidMoveFolders) { %>
  • <%= HtmlUtil.escape(folder.getName()) %>
  • <% } %>
<% List validMoveArticles = journalMovesEntriesDisplayContext.getValidMoveArticles(); %>

    <% for (JournalArticle validMoveArticle : validMoveArticles) { %>
  • <%= HtmlUtil.escape(validMoveArticle.getTitle(locale)) %>
  • <% } %>
<% List invalidMoveArticles = journalMovesEntriesDisplayContext.getInvalidMoveArticles(); %>

    <% for (JournalArticle invalidMoveArticle : invalidMoveArticles) { %>
  • <%= HtmlUtil.escape(invalidMoveArticle.getTitle()) %>
  • <% } %>
AUI.$('#selectFolderButton').on( 'click', function(event) { var itemSelectorDialog = new A.LiferayItemSelectorDialog( { eventName: 'selectFolder', on: { selectedItemChange: function(event) { var selectedItem = event.newVal; if (selectedItem) { var folderData = { idString: 'newFolderId', idValue: selectedItem.folderId, nameString: 'folderName', nameValue: selectedItem.folderName }; Liferay.Util.selectFolder(folderData, ''); } } }, 'strings.add': '', title: '', url: '<%= selectFolderURL %>' } ); itemSelectorDialog.open(); } );




© 2015 - 2024 Weber Informatics LLC | Privacy Policy