META-INF.resources.configuration.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="/init.jsp" %>
" id=" videoPreferences">
function updateFrameSize(value) {
var Util = Liferay.Util;
var heightNode = document.querySelector('# height');
var widthNode = document.querySelector('# width');
var useDefaults = value != 'custom';
Util.toggleDisabled(heightNode, useDefaults);
Util.toggleDisabled(widthNode, useDefaults);
if (useDefaults) {
var dimensions = value.split('x');
heightNode.value = dimensions[1];
widthNode.value = dimensions[0];
}
}
Liferay.Util.toggleBoxes(
' showThumbnail',
' videoPreferences',
'<%= youTubeDisplayContext.isShowThumbnail() %>'
);