Commit dba3612b authored by wilhelmhb's avatar wilhelmhb

débugage

parent f7633c46
......@@ -232,7 +232,8 @@ function goToHiveSeuils() {
}
else {
$("#form-params-hive-seuils").find(".bouton").click(function(e){$(this).off("click");
$("#form-params-hive-seuils").find(".bouton").click(function(e){$("#form-params-hive-seuils").submit();$(this).off("click");});
$("#form-params-hive-seuils").submit(function(e) {
//console.log("début modif");
e.preventDefault();
var donnees = $(this).serialize();
......@@ -241,7 +242,7 @@ function goToHiveSeuils() {
charge();
$.ajax({
type: 'PATCH',
url: url+'pshive/'+donneesRuches.hivegroups[idHiveGroup].hives[idHive].id_hive,
url: url+'pshive/'+donneesRuches.hivegroups[idHiveGroup].hives[idHive].id_hive + '/update',
xhrFields: {
withCredentials: true
},
......@@ -252,9 +253,9 @@ function goToHiveSeuils() {
//customer = data;
console.log("Succes de la modification des seuils");
console.log(data);
updateLimitsHive(data);
getDataHive(donneesRuches.hivegroups[idHiveGroup].hives[idHive].id_hive, idHive, donneesRuches.hivegroups[idHiveGroup].hives[idHive].name, function(data) { updateLimitsHive(data); goToDataHive(true);});
/* on retourne aux détails */
goToDataHive(true);
//goToDataHive(true);
//console.log("fin modif");
},
error: function (xhr, ajaxOptions, thrownError) {
......
......@@ -1478,7 +1478,7 @@
{{#seuils}}
<div>
<label for="{{ nom }}">{{ description }} : </label>
<input type="text" value="{{ v }}" id="{{ nom }}" name="{{ nom }}" maxlength="64" />
<input type="text" value="{{ v }}" id="{{ nom }}" name="params[{{ nom }}]" maxlength="64" />
</div>
{{/seuils}}
<div class="bouton"><span>VALIDER</span></div>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment