| Line 58... |
Line 58... |
| 58 |
$("#miniature").append('<img id="miniature-chargement" class="miniature" alt="chargement" src="'+CHARGEMENT_IMAGE_URL+'"/>');
|
58 |
$("#miniature").append('<img id="miniature-chargement" class="miniature" alt="chargement" src="'+CHARGEMENT_IMAGE_URL+'"/>');
|
| 59 |
$("#ajouter-obs").attr('disabled', 'disabled');
|
59 |
$("#ajouter-obs").attr('disabled', 'disabled');
|
| 60 |
if(verifierFormat($("#fichier").val())) {
|
60 |
if(verifierFormat($("#fichier").val())) {
|
| 61 |
$("#form-upload").ajaxSubmit(options);
|
61 |
$("#form-upload").ajaxSubmit(options);
|
| 62 |
} else {
|
62 |
} else {
|
| - |
|
63 |
$('#form-upload')[0].reset();
|
| 63 |
window.alert("Le format de fichier n'est pas supporté, les formats acceptés sont "+ $("#fichier").attr("accept"));
|
64 |
window.alert("Le format de fichier n'est pas supporté, les formats acceptés sont "+ $("#fichier").attr("accept"));
|
| 64 |
}
|
65 |
}
|
| 65 |
return false;
|
66 |
return false;
|
| 66 |
});
|
67 |
});
|