META-INF.resources.edit_asset_vocabulary.jsp Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.asset.categories.admin.web
Show all versions of com.liferay.asset.categories.admin.web
Liferay Asset Categories Admin Web
The newest version!
<%--
/**
* 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="/init.jsp" %>
<%
String redirect = ParamUtil.getString(request, "redirect", assetCategoriesDisplayContext.getDefaultRedirect());
long vocabularyId = ParamUtil.getLong(request, "vocabularyId");
AssetVocabulary vocabulary = null;
if (vocabularyId > 0) {
vocabulary = AssetVocabularyServiceUtil.fetchVocabulary(vocabularyId);
}
portletDisplay.setShowBackIcon(true);
portletDisplay.setURLBack(redirect);
portletDisplay.setURLBackTitle(portletDisplay.getPortletDisplayName());
renderResponse.setTitle((vocabulary == null) ? LanguageUtil.get(request, "add-vocabulary") : vocabulary.getTitle(locale));
%>
<%@ include file="/edit_vocabulary_settings.jspf" %>
function confirmation(event) {
var message =
' ';
var visibilityTypePublic = document.getElementById(
' visibilityTypePublic'
);
var visibilityTypePublicChecked = visibilityTypePublic.checked;
if (visibilityTypePublicChecked) {
message =
' ';
}
Liferay.Util.openConfirmModal({
message:
message +
' \n\n ',
onConfirm: (isConfirmed) => {
if (isConfirmed) {
submitForm(document. fm);
}
},
});
submitForm(document. fm);
}