Subversion Repositories eFlore/Applications.cel

Rev

Rev 363 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 363 Rev 385
Line 965... Line 965...
965
		} else {
965
		} else {
966
			return false;
966
			return false;
967
		}
967
		}
968
	}
968
	}
Line 969... Line 969...
969
	
969
	
Line 970... Line 970...
970
	public void gererDDMotCleSurObs(String idObs, String IdMC) {
970
	public void gererDDMotCleSurObs(String idObs, String idMC) {
Line 971... Line 971...
971
		
971
		
972
		Observation obs = obtenirCacheObservation().get(idObs);
972
		Observation obs = obtenirCacheObservation().get(idObs);
973
		
973
		
Line 974... Line 974...
974
		if(obs == null) {
974
		if(obs == null) {
975
			return;
975
			return;
976
		}
976
		}
977
		
977
		
Line 978... Line 978...
978
		if(observationAvoirMotCle(IdMC, idObs)) {
978
		if(observationAvoirMotCle(idMC, idObs)) {
Line 979... Line 979...
979
			if(Window.confirm("Voulez vous supprimer la liaison entre l'observation et le mot clé ?")) {
979
			if(Window.confirm("Voulez vous supprimer la liaison entre l'observation et le mot clé ?")) {
980
				String nouveauMotsCles = obs.getMotsCles().replace(IdMC, "");
980
				String nouveauMotsCles = obs.getMotsCles().replace(idMC, "");
981
				nouveauMotsCles = nouveauMotsCles.replace(";;", ";");
981
				nouveauMotsCles = nouveauMotsCles.replace(";;", ";");
982
				
982
				
Line 983... Line 983...
983
				obs.setMotsCles(nouveauMotsCles);
983
				obs.setMotsCles(nouveauMotsCles);