Subversion Repositories eFlore/Applications.coel

Compare Revisions

Ignore whitespace Rev 1672 → Rev 1673

/trunk/src/org/tela_botanica/client/modeles/structure/StructureAsyncDao.java
184,8 → 184,18
rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
@Override
public void surReponse(JSONValue responseValue) {
// Si la requête a impliquées des valeurs autogénérées, l'objet modifié est retourné
JSONObject obj;
if ((obj = responseValue.isObject()) != null) {
if (obj.get("structures").isObject() != null) {
Structure structure = new Structure(obj.get("structures").isObject());
Information info = new Information("modif_structure");
info.setDonnee(structure);
vueARafraichir.rafraichir(info);
}
}
// Si la requête est un succès, reception d'une chaine
if (responseValue.isString() != null) {
else if (responseValue.isString() != null) {
Information info = new Information("modif_structure");
info.setMessage(responseValue.isString().stringValue());
vueARafraichir.rafraichir(info);
293,4 → 303,4
}
return postDonnees;
}
}
}
/trunk/src/org/tela_botanica/client/vues/structure/StructureForm.java
402,6 → 402,14
if (info.getType().equals("modif_structure")) {
InfoLogger.display("Modification d'une institution", info.toString());
Structure structureMaj = (Structure)(info.getDonnee(0));
if(structureMaj != null) {
// TRUE uniquement si la modification a retourné un objet JSON pour mise à jour
// (contenant les coordonnées générées, cf r1673)
structure.setLatitude(structureMaj.getLatitude());
structure.setLongitude(structureMaj.getLongitude());
}
controlerFermeture();
} else if (info.getType().equals("ajout_structure")) {
if (info.getDonnee(0) != null && info.getDonnee(0) instanceof String) {