Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
6 | Andrea | 1 | <#-- |
2 | /* |
||
3 | * $Id: pom.xml 560558 2007-07-28 15:47:10Z apetrelli $ |
||
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 | |||
24 | <#if (parameters.customOnsubmitEnabled?default(false))> |
||
25 | <script type="text/javascript"> |
||
26 | <#-- |
||
27 | Enable auto-select of optiontransferselect tag's entries upon containing form's |
||
28 | submission. |
||
29 | --> |
||
30 | dojo.require("dojo.event.connect"); |
||
31 | <#if (parameters.optiontransferselectIds?if_exists?size > 0)> |
||
32 | var containingForm = document.getElementById("${parameters.id}"); |
||
33 | <#assign selectObjIds = parameters.optiontransferselectIds.keySet() /> |
||
34 | <#list selectObjIds as selectObjectId> |
||
35 | dojo.event.connect(containingForm, "onsubmit", |
||
36 | function(evt) { |
||
37 | var selectObj = document.getElementById("${selectObjectId}"); |
||
38 | <#if parameters.optiontransferselectIds.get(selectObjectId)?exists> |
||
39 | <#assign selectTagHeaderKey = parameters.optiontransferselectIds.get(selectObjectId)/> |
||
40 | selectAllOptionsExceptSome(selectObj, "key", "${selectTagHeaderKey}"); |
||
41 | <#else> |
||
42 | selectAllOptionsExceptSome(selectObj, "key", ""); |
||
43 | </#if> |
||
44 | }); |
||
45 | </#list> |
||
46 | </#if> |
||
47 | <#if (parameters.inputtransferselectIds?if_exists?size > 0)> |
||
48 | var containingForm = document.getElementById("${parameters.id}"); |
||
49 | <#assign selectObjIds = parameters.inputtransferselectIds.keySet() /> |
||
50 | <#list selectObjIds as selectObjectId> |
||
51 | dojo.event.connect(containingForm, "onsubmit", |
||
52 | function(evt) { |
||
53 | var selectObj = document.getElementById("${selectObjectId}"); |
||
54 | <#if parameters.inputtransferselectIds.get(selectObjectId)?exists> |
||
55 | <#assign selectTagHeaderKey = parameters.inputtransferselectIds.get(selectObjectId)/> |
||
56 | selectAllOptionsExceptSome(selectObj, "key", "${selectTagHeaderKey}"); |
||
57 | <#else> |
||
58 | selectAllOptionsExceptSome(selectObj, "key", ""); |
||
59 | </#if> |
||
60 | }); |
||
61 | </#list> |
||
62 | </#if> |
||
63 | <#if (parameters.optiontransferselectDoubleIds?if_exists?size > 0)> |
||
64 | var containingForm = document.getElementById("${parameters.id}"); |
||
65 | <#assign selectDoubleObjIds = parameters.optiontransferselectDoubleIds.keySet() /> |
||
66 | <#list selectDoubleObjIds as selectObjId> |
||
67 | dojo.event.connect(containingForm, "onsubmit", |
||
68 | function(evt) { |
||
69 | var selectObj = document.getElementById("${selectObjId}"); |
||
70 | <#if parameters.optiontransferselectDoubleIds.get(selectObjId)?exists> |
||
71 | <#assign selectTagHeaderKey = parameters.optiontransferselectDoubleIds.get(selectObjId)/> |
||
72 | selectAllOptionsExceptSome(selectObj, "key", "${selectTagHeaderKey}"); |
||
73 | <#else> |
||
74 | selectAllOptionsExceptSome(selectObj, "key", ""); |
||
75 | </#if> |
||
76 | }); |
||
77 | </#list> |
||
78 | </#if> |
||
79 | |||
80 | |||
81 | <#-- |
||
82 | Enable auto-select of all elements of updownselect tag upon its containing form |
||
83 | submission |
||
84 | --> |
||
85 | <#if (parameters.updownselectIds?if_exists?size > 0)> |
||
86 | var containingForm = document.getElementById("${parameters.id}"); |
||
87 | <#assign tmpIds = parameters.updownselectIds.keySet() /> |
||
88 | <#list tmpIds as tmpId> |
||
89 | dojo.event.connect(containingForm, "onsubmit", |
||
90 | function(evt) { |
||
91 | var updownselectObj = document.getElementById("${tmpId}"); |
||
92 | <#if parameters.updownselectIds.get(tmpId)?exists> |
||
93 | <#assign tmpHeaderKey = parameters.updownselectIds.get(tmpId) /> |
||
94 | selectAllOptionsExceptSome(updownselectObj, "key", "${tmpHeaderKey}"); |
||
95 | <#else> |
||
96 | selectAllOptionsExceptSome(updownselectObj, "key", ""); |
||
97 | </#if> |
||
98 | }); |
||
99 | </#list> |
||
100 | </#if> |
||
101 | </script> |
||
102 | </#if> |
||
103 | |||
104 | <#-- |
||
105 | Code that will add javascript needed for tooltips |
||
106 | --><#t/> |
||
107 | <#lt/><!-- javascript that is needed for tooltips --> |
||
108 | <#lt/><script type="text/javascript">dojo.require("dojo.widget.Tooltip");dojo.require("dojo.fx.html");</script> |
||
109 | |||
110 | </table> |
||
111 | </form> |