Quelques corrections

AddConference marche
This commit is contained in:
2008-02-05 08:05:24 +00:00
parent 657bb8259a
commit 4f6a5c67b1
9 changed files with 165 additions and 50 deletions

View File

@@ -74,15 +74,6 @@ function clearPerson() {
dwr.util.setValues({ id:-1, label:null, min:null, max:null });
}
function submitIfNotEnter(theForm){
if(theForm.elements["submit"] || theForm.elements["submit"]){
return true;
} else {
writePerson();
return false;
}
}
</script>
</head>
@@ -114,6 +105,7 @@ function submitIfNotEnter(theForm){
</td>
</tr>
</table>
</fieldset>
<br />
@@ -141,8 +133,8 @@ function submitIfNotEnter(theForm){
<br />
<input type="submit" align="middle" name="_target2" value="Back" onclick="this.form.elements['submit']=true">
<input type="submit" align="middle" name="_target4" value="Next" onclick="this.form.elements['submit']=true" />
<input type="submit" align="middle" name="_target2" value="Back">
<input type="submit" align="middle" name="_target4" value="Next"/>
</form:form>

View File

@@ -72,6 +72,15 @@ function addPerson(eleid) {
dwr.engine.endBatch();
}
function addInvitation() {
var email = $("emailAddress").value;
dwr.engine.beginBatch();
AddCriteriaJS.addInvitation(email);
fillTable();
fillTable2();
dwr.engine.endBatch();
}
function deletePerson(eleid) {
var person = peopleCache[eleid.substring(11)];
if (confirm("Are you sure you want to delete " + person.name + "?")) {
@@ -114,8 +123,8 @@ function filterUser(el, value) {
</tbody>
</table>
Add a new member <br />
Mail: <input id="mail" type="text" />
<fmt:message key="pcmember.invitation.promptMessage"/> <br/>
Mail: <input id="emailAddress" type="text"/> <input type="button" name="invitationEmail" onclick="addInvitation()"/>
<br />