Ajout du supprimage javascript
This commit is contained in:
@@ -8,13 +8,13 @@
|
||||
|
||||
<SCRIPT LANGUAGE="JavaScript">
|
||||
function Ajouter(form) {
|
||||
var o=new Option(form.mainauthor.value);
|
||||
form.liste.options[form.liste.options.length]=o;
|
||||
}
|
||||
function Ajouter2(form) {
|
||||
var o=new Option(form.secondaryauthor.value);
|
||||
form.liste.options[form.liste.options.length]=o;
|
||||
}
|
||||
}
|
||||
|
||||
function Supprimer(form) {
|
||||
form.liste.options[liste.options.selectedIndex]=null;
|
||||
}
|
||||
</SCRIPT>
|
||||
|
||||
</head>
|
||||
@@ -32,18 +32,17 @@ function Ajouter2(form) {
|
||||
<hr /> <br />
|
||||
|
||||
<fmt:message key="form.submission.listauthor" /> <br /><br />
|
||||
<fmt:message key="form.submission.mainauthor" /> <form:input path="mainauthor" />
|
||||
<input type="button" name="addMain" onClick="Ajouter(this.form)" value=<fmt:message key="button.add" />> <br/><br />
|
||||
<fmt:message key="form.submission.mainauthor" /> <form:input path="mainauthor" /> <br/><br />
|
||||
<fmt:message key="form.submission.secondaryauthor" /> <form:input path="secondaryauthor" />
|
||||
<input type="button" name="addSecondary" onClick="Ajouter2(this.form)" value=<fmt:message key="button.add" />> <br/><br />
|
||||
<input type="button" name="addSecondary" onClick="Ajouter(this.form)" value=<fmt:message key="button.add" />> <br/><br />
|
||||
|
||||
<form:select path="liste" size="5" itemValue="test">
|
||||
<form:select path="liste" size="5" ondblclick="Supprimer(this.form)" itemValue="test">
|
||||
|
||||
</form:select>
|
||||
<br />
|
||||
<br /><br />
|
||||
|
||||
<hr />
|
||||
|
||||
<br />
|
||||
File : <input type="file" name="file"/>
|
||||
|
||||
<br /><br />
|
||||
|
||||
Reference in New Issue
Block a user