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

META-INF.resources.pending_commerce_orders.transition.jspf Maven / Gradle / Ivy

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
 */
--%>


	
	
	

	
Liferay.provide( window, 'transition', (event) => { const link = event.currentTarget; const workflowTaskId = parseInt(link.getData('workflowTaskId'), 10); const form = document.getElementById( 'transitionFm' ); document.getElementById( 'transitionCommerceOrderId' ).value = link.getData('commerceOrderId'); document.getElementById('workflowTaskId').value = workflowTaskId; document.getElementById('transitionName').value = link.getData('transitionName'); if (workflowTaskId <= 0) { submitForm(form); return; } const transitionComments = document.getElementById( 'transitionComments' ); transitionComments.classList.remove('hide'); const dialog = Liferay.Util.Window.getWindow({ dialog: { bodyContent: form, destroyOnHide: true, height: 400, resizable: false, toolbars: { footer: [ { cssClass: 'btn-primary mr-2', label: '', on: { click: function () { submitForm(form); }, }, }, { cssClass: 'btn-cancel', label: '', on: { click: function () { dialog.hide(); }, }, }, ], header: [ { cssClass: 'close', discardDefaultButtonCssClasses: true, labelHTML: '', on: { click: function (event) { dialog.hide(); }, }, }, ], }, width: 720, }, title: link.text(), }); }, ['aui-base', 'liferay-util-window'] );




© 2015 - 2025 Weber Informatics LLC | Privacy Policy