Subversion Repositories Sigmater

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
6 Andrea 1
<#--
2
/*
3
 * $Id: Action.java 502296 2007-02-01 17:33:39Z niallp $
4
 *
5
 * Licensed to the Apache Software Foundation (ASF) under one
6
 * or more contributor license agreements.  See the NOTICE file
7
 * distributed with this work for additional information
8
 * regarding copyright ownership.  The ASF licenses this file
9
 * to you under the Apache License, Version 2.0 (the
10
 * "License"); you may not use this file except in compliance
11
 * with the License.  You may obtain a copy of the License at
12
 *
13
 *  http://www.apache.org/licenses/LICENSE-2.0
14
 *
15
 * Unless required by applicable law or agreed to in writing,
16
 * software distributed under the License is distributed on an
17
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18
 * KIND, either express or implied.  See the License for the
19
 * specific language governing permissions and limitations
20
 * under the License.
21
 */
22
-->
23
</form>
24
 
25
<#if (parameters.customOnsubmitEnabled?if_exists)>
26
<script type="text/javascript">
27
<#-- 
28
  Enable auto-select of optiontransferselect tag's entries upon containing form's 
29
  submission.
30
-->
31
dojo.require("dojo.event.*");
32
<#if (parameters.optiontransferselectIds?if_exists?size > 0)>
33
	var containingForm = document.getElementById("${parameters.id}");
34
	<#assign selectObjIds = parameters.optiontransferselectIds.keySet() />
35
	<#list selectObjIds as selectObjectId>
36
		dojo.event.connect(containingForm, "onsubmit", 
37
			function(evt) {
38
				var selectObj = document.getElementById("${selectObjectId}");
39
				<#if parameters.optiontransferselectIds.get(selectObjectId)?exists>
40
					<#assign selectTagHeaderKey = parameters.optiontransferselectIds.get(selectObjectId)/>
41
					selectAllOptionsExceptSome(selectObj, "key", "${selectTagHeaderKey}");
42
				<#else>
43
					selectAllOptionsExceptSome(selectObj, "key", "");
44
				</#if>
45
			});
46
	</#list>
47
</#if>
48
<#if (parameters.inputtransferselectIds?if_exists?size > 0)>
49
	var containingForm = document.getElementById("${parameters.id}");
50
	<#assign selectObjIds = parameters.inputtransferselectIds.keySet() />
51
	<#list selectObjIds as selectObjectId>
52
		dojo.event.connect(containingForm, "onsubmit",
53
			function(evt) {
54
				var selectObj = document.getElementById("${selectObjectId}");
55
				<#if parameters.inputtransferselectIds.get(selectObjectId)?exists>
56
					<#assign selectTagHeaderKey = parameters.inputtransferselectIds.get(selectObjectId)/>
57
					selectAllOptionsExceptSome(selectObj, "key", "${selectTagHeaderKey}");
58
				<#else>
59
					selectAllOptionsExceptSome(selectObj, "key", "");
60
				</#if>
61
			});
62
	</#list>
63
</#if>
64
<#if (parameters.optiontransferselectDoubleIds?if_exists?size > 0)>
65
	var containingForm = document.getElementById("${parameters.id}");
66
	<#assign selectDoubleObjIds = parameters.optiontransferselectDoubleIds.keySet() />
67
	<#list selectDoubleObjIds as selectObjId>
68
		dojo.event.connect(containingForm, "onsubmit", 
69
			function(evt) {
70
				var selectObj = document.getElementById("${selectObjId}");
71
				<#if parameters.optiontransferselectDoubleIds.get(selectObjId)?exists>
72
					<#assign selectTagHeaderKey = parameters.optiontransferselectDoubleIds.get(selectObjId)/>
73
					selectAllOptionsExceptSome(selectObj, "key", "${selectTagHeaderKey}");
74
				<#else>
75
					selectAllOptionsExceptSome(selectObj, "key", "");
76
				</#if>
77
			});
78
	</#list>
79
</#if>
80
 
81
 
82
<#--
83
	Enable auto-select of all elements of updownselect tag upon its containing form
84
	submission
85
-->
86
<#if (parameters.updownselectIds?if_exists?size > 0)>
87
	var containingForm = document.getElementById("${parameters.id}");
88
	<#assign tmpIds = parameters.updownselectIds.keySet() />
89
	<#list tmpIds as tmpId>
90
		dojo.event.connect(containingForm, "onsubmit", 
91
			function(evt) {
92
				var updownselectObj = document.getElementById("${tmpId}");
93
				<#if parameters.updownselectIds.get(tmpId)?exists>
94
					<#assign tmpHeaderKey = parameters.updownselectIds.get(tmpId) />
95
					selectAllOptionsExceptSome(updownselectObj, "key", "${tmpHeaderKey}");
96
				<#else>
97
					selectAllOptionsExceptSome(updownselectObj, "key", "");
98
				</#if>
99
			});
100
	</#list>
101
</#if>
102
</script>
103
</#if>
104
 
105
 
106
<#-- 
107
 Code that will add javascript needed for tooltips
108
--><#t/>
109
<#if (parameters.hasTooltip?default(false))><#t/>
110
	<#lt/><!-- javascript that is needed for tooltips -->
111
	<#lt/><script type="text/javascript">dojo.require("dojo.widget.Tooltip");dojo.require("dojo.fx.html");</script>
112
</#if><#t/>