Fixed missing type attribute from script elements

WW-1627


git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@501749 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Donald J. Brown
2007-01-31 06:59:58 +00:00
parent 8d4d13147d
commit 9ebc53c4f0
10 changed files with 11 additions and 11 deletions
@@ -1,6 +1,6 @@
<#if (parameters.customOnsubmitEnabled?default(false))>
<script>
<script type="text/javascript">
<#--
Enable auto-select of optiontransferselect tag's entries upon containing form's
submission.
@@ -1,4 +1,4 @@
<script>
<script type="text/javascript">
function autoPopulate_${parameters.name?html}(targetElement) {
<#if parameters.headerKey?exists && parameters.headerValue?exists>
if (targetElement.options[targetElement.selectedIndex].value == '${parameters.headerKey?html}') {
@@ -1,7 +1,7 @@
</form>
<#if (parameters.customOnsubmitEnabled?if_exists)>
<script>
<script type="text/javascript">
<#--
Enable auto-select of optiontransferselect tag's entries upon containing form's
submission.
@@ -12,7 +12,7 @@ Only the following validators are supported:
END SNIPPET: supported-validators
-->
<#if ((parameters.validate?default(false) == true) && (parameters.performValidation?default(false) == true))>
<script>
<script type="text/javascript">
function validateForm_${parameters.id}() {
form = document.getElementById("${parameters.id}");
clearErrorMessages(form);
@@ -1,7 +1,7 @@
<tr>
<td class="tdLabel"><label for="foo" class="label">mylabel:</label></td>
<td>
<script>
<script type="text/javascript">
function autoPopulate_foo(targetElement) {
targetElement.form.elements['foo'].value=targetElement.options[targetElement.selectedIndex].value;
}
@@ -1,7 +1,7 @@
<tr>
<td class="tdLabel"><label for="myFavouriteFruit" class="label">My Favourite Fruit:</label></td>
<td>
<script>
<script type="text/javascript">
function autoPopulate_myFavouriteFruit(targetElement) {
if (targetElement.options[targetElement.selectedIndex].value == '-1') {
return;
@@ -1,7 +1,7 @@
<tr>
<td class="tdLabel"><label for="myFavouriteFruit" class="label">My Favourite Fruit:</label></td>
<td>
<script>
<script type="text/javascript">
function autoPopulate_myFavouriteFruit(targetElement) {
if (targetElement.options[targetElement.selectedIndex].value == '-1') {
return;
@@ -19,7 +19,7 @@
</form>
<script>
<script type="text/javascript">
dojo.require("dojo.event.*");
var containingForm = document.getElementById("myAction");
dojo.event.connect(containingForm, "onsubmit",
@@ -19,7 +19,7 @@
</form>
<script>
<script type="text/javascript">
dojo.require("dojo.event.*");
var containingForm = document.getElementById("myAction");
dojo.event.connect(containingForm, "onsubmit",
@@ -29,7 +29,7 @@
});
</script>
<script>
<script type="text/javascript">
function validateForm_myAction() {
form = document.getElementById("myAction");
clearErrorMessages(form);
@@ -18,7 +18,7 @@
</form>
<script>
<script type="text/javascript">
dojo.require("dojo.event.*");
var containingForm = document.getElementById("myAction");
dojo.event.connect(containingForm, "onsubmit",