
META-INF.resources.bookmarks.toolbar.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="/bookmarks/init.jsp" %>
<%
String searchContainerId = ParamUtil.getString(request, "searchContainerId");
int total = GetterUtil.getInteger((String)request.getAttribute("view.jsp-total"));
PortletURL portletURL = renderResponse.createRenderURL();
portletURL.setParameter("categoryId", StringPool.BLANK);
portletURL.setParameter("tag", StringPool.BLANK);
%>
<%
String[] navigationKeys = null;
if (themeDisplay.isSignedIn()) {
navigationKeys = new String[] {"all", "recent", "mine"};
}
else {
navigationKeys = new String[] {"all", "recent"};
}
%>
function deleteEntries() {
if (<%= TrashUtil.isTrashEnabled(scopeGroupId) %> || confirm(' <%= UnicodeLanguageUtil.get(request, "are-you-sure-you-want-to-delete-the-selected-entries") %>')) {
var form = AUI.$(document. fm);
form.attr('method', 'post');
form.fm('<%= Constants.CMD %>').val('<%= TrashUtil.isTrashEnabled(scopeGroupId) ? Constants.MOVE_TO_TRASH : Constants.DELETE %>');
submitForm(form, ' ');
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy