META-INF.resources.wiki_admin.edit_node.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="/wiki/init.jsp" %>
<%
String redirect = ParamUtil.getString(request, "redirect");
WikiNode node = (WikiNode)request.getAttribute(WikiWebKeys.WIKI_NODE);
long nodeId = BeanParamUtil.getLong(node, request, "nodeId");
portletDisplay.setShowBackIcon(true);
portletDisplay.setURLBack(redirect);
renderResponse.setTitle((node == null) ? LanguageUtil.get(request, "new-wiki-node") : node.getName());
%>
function(val) {
return !/^\d+$/.test(val);
}
function saveNode() {
document. fm. <%= Constants.CMD %>.value =
'<%= (node == null) ? Constants.ADD : Constants.UPDATE %>';
submitForm(document. fm);
}
<%
PortalUtil.addPortletBreadcrumbEntry(request, LanguageUtil.get(request, (node == null) ? "add-wiki" : "edit"), currentURL);
%>