form-close.ftl

来自「OBPM是一个开源」· FTL 代码 · 共 71 行

FTL
71
字号
<script><#--   Enable auto-select of optiontransferselect tag's entries upon containing form's   submission.-->var containingForm = document.getElementById("${parameters.id}");<#if (parameters.optiontransferselectIds?if_exists?size > 0)>	<#assign selectObjIds = parameters.optiontransferselectIds.keySet() />	<#list selectObjIds as selectObjectId>		dojo.event.connect(containingForm, "onsubmit", 			function(evt) {				var selectObj = document.getElementById("${selectObjectId}");				selectAllOptions(selectObj);				selectUnselectMatchingOptions(selectObj, null, "unselect", false, "key");				<#if parameters.optiontransferselectIds.get(selectObjectId)?exists>					<#assign selectTagHeaderKey = parameters.optiontransferselectIds.get(selectObjectId)/>					selectUnselectMatchingOptions(selectObj, "${selectTagHeaderKey}", "unselect", false, "key");				</#if>			});	</#list></#if><#if (parameters.optiontransferselectDoubleIds?if_exists?size > 0)>	<#assign selectDoubleObjIds = parameters.optiontransferselectDoubleIds.keySet() />	<#list selectDoubleObjIds as selectObjId>		dojo.event.connect(containingForm, "onsubmit", 			function(evt) {				var selectObj = document.getElementById("${selectObjId}");				selectAllOptions(selectObj);				selectUnselectMatchingOptions(selectObj, null, "unselect", false, "key");				<#if parameters.optiontransferselectDoubleIds.get(selectObjId)?exists>					<#assign selectTagHeaderKey = parameters.optiontransferselectDoubleIds.get(selectObjId)/>					selectUnselectMatchingOptions(selectObj, "${selectTagHeaderKey}", "unselect", false, "key");				</#if>			});	</#list></#if><#--	Enable auto-select of all elements of updownselect tag upon its containing form	submission--><#if (parameters.updownselectIds?if_exists?size > 0)>	<#assign tmpIds = parameters.updownselectIds.keySet() />	<#list tmpIds as tmpId>		dojo.event.connect(containingForm, "onsubmit", 			function(evt) {				var selectObj = document.getElementById("${tmpId}");				selectAllOptions(selectObj);				selectUnselectMatchingOptions(selectObj, null, "unselect", false, "key");				<#if parameters.updownselectIds.get(tmpId)?exists>					<#assign tmpHeaderKey = parameters.updownselectIds.get(tmpId) />					selectUnselectMatchingOptions(selectObj, "${tmpHeaderKey}", "unselect", false, "key");				</#if>			});	</#list></#if></script><#--  Code that will add javascript needed for tooltips--><#t/><#if parameters.hasTooltip?default(false)><#t/>	<#lt/><!-- javascript that is needed for tooltips --> 	<#lt/><script language="JavaScript" type="text/javascript" src="<@ww.url value='/webwork/tooltip/wz_tooltip.js' encode='false' includeParams='none'/>"></script></#if><#t/></table></form>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?