1,5 → 1,16 |
var urlBaseJrest = 'http://localhost/obs_saisons/applications/jrest/'; |
var urlBaseJrest = 'http://162.38.234.9/obs_saisons/applications/jrest/'; |
|
function getUrlBaseJrest() { |
|
url_page_courante = document.URL; |
|
if(url_page_courante.indexOf('http://www.') != -1) { |
return urlBaseJrest; |
} else { |
return urlBaseJrest.replace('http://www.','http://'); |
} |
} |
|
/** |
************************************************************************************************ |
************************************************************************************************ |
15,7 → 26,7 |
|
$('.pliage ul').hide(); |
$('.pliage > ul:first-child').hide(); |
|
|
$('.1er_element_date ul').show(); |
$('.1er_element_date > ul:first-child').show(); |
|
30,24 → 41,7 |
initialiserElementsPliables(); |
}); |
|
/** |
************************************************************************************************ |
************************************************************************************************ |
|
Fonctions pour la fiche individu |
|
************************************************************************************************ |
************************************************************************************************ |
**/ |
|
observations = $('.observations_individu'); |
window.alert(dump(observations)); |
observations[0].ready(function() { |
window.alert(dump(observations)); |
$(this).nextAll('ul').show(); |
}); |
|
|
/** |
************************************************************************************************ |
************************************************************************************************ |
100,6 → 94,8 |
}); |
|
|
|
|
/** |
************************************************************************************************ |
************************************************************************************************ |
375,7 → 371,7 |
} |
|
cacherElementsRafraichissables(); |
|
|
$.get(urlBaseJrest+'OdsCommune/informationsPourCoordonnees/?lat='+lat+'&lon='+lon, function(data) { |
|
infos_localites = jQuery.parseJSON(data); |