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