Loading module/Application/src/Controller/StatutIntervenantController.php +1 −1 Changes for module/Application/src/Controller/StatutIntervenantController.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -150,7 +150,7 @@ class StatutIntervenantController extends AbstractController } } return new JsonModel(['msg' => 'Tri des champs effectué']); return new MessengerViewModel(); } } Loading module/Application/src/Controller/TypeInterventionController.php +1 −1 Changes for module/Application/src/Controller/TypeInterventionController.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -179,7 +179,7 @@ class TypeInterventionController extends AbstractController } } return new JsonModel(['msg' => 'Tri des champs effectué']); return new MessengerViewModel(); } Loading module/Application/view/application/chargens/seuil.phtml +14 −15 Changes for module/Application/view/application/chargens/seuil.phtml: 14 added lines, 15 removed lines. Original line number Diff line number Diff line Loading @@ -88,37 +88,36 @@ $canEditcomp = $this->isAllowed(Privileges::getResourceId(Privileges::CHARGENS_S function changementSeuil(element) { var url = "<?= $scenario ? $this->url('chargens/seuil/modifier', ['scenario' => $scenario->getId()]) : null ?>"; var params = $(element).data(); params.dedoublement = $(element).val(); $.post(url, params, function (data) { alertFlash(data, 'success', 3000); $.ajax({ type: 'POST', url: "<?= $scenario ? $this->url('chargens/seuil/modifier', ['scenario' => $scenario->getId()]) : null ?>", data: {params: params}, success: function () { alertFlash("Tri effectué", 'success', 3000); seuilCalcHeures(); }).fail(function (jqXHR) { alertFlash(data, 'error', 3000); console.log(jqXHR); }, }); } function seuilCalcHeures() { var url = "<?= $scenario ? $this->url('chargens/seuil/calc-heures', ['scenario' => $scenario->getId()]) : null ?>"; $.post(url, {}, function (data) { $.ajax({ type: 'POST', url: "<?= $scenario ? $this->url('chargens/seuil/calc-heures', ['scenario' => $scenario->getId()]) : null ?>", data: {}, success: function (data) { for (sid in data) { $('#heures-' + sid).html( 'Heures (FI) : ' + Formatter.floatToString(data[sid]['heures']) + '; HETD (FI) : ' + Formatter.floatToString(data[sid]['hetd']) ); } }).fail(function (jqXHR) { console.log(jqXHR); } }); } function changeScenario() Loading module/Application/view/application/formule/test-saisir.phtml +10 −4 Changes for module/Application/view/application/formule/test-saisir.phtml: 10 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -567,9 +567,14 @@ echo $this->tag('h1', ['class' => 'page-header'])->html($title); if (this.id) url += '/' + this.id; that.saving = true; $.post(url, {"data": JSON.stringify(that.getData())}, function (data) { $.ajax({ type: 'POST', url: url, data: {data: JSON.stringify(that.getData())}, success: function (data) { that.element.find('.errors').html(''); console.log(data.data); that.setData(data.data); if (data.errors) { for (e in data.errors) { Loading @@ -581,11 +586,12 @@ echo $this->tag('h1', ['class' => 'page-header'])->html($title); } } that.saving = false; }).fail(function (jqXHR) { }, error: function (jqXHR) { alertFlash(jqXHR.responseText, 'error', 5000); console.log(jqXHR); that.saving = false; } }); return result; Loading module/Application/view/application/intervenant/cloturer-saisie.phtml +6 −1 Changes for module/Application/view/application/intervenant/cloturer-saisie.phtml: 6 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -21,8 +21,13 @@ $libelle = $this->translate('J\'ai terminé la saisie de la totalité de mon ser if (!confirm("<?= $this->confirm ?>")) { return; } $.post(url, {cloturer: 1}, function() { $.ajax({ type: 'POST', url: url, data: {cloturer: 1}, success: function () { window.location.reload(); }, }); }); }); Loading Loading
module/Application/src/Controller/StatutIntervenantController.php +1 −1 Changes for module/Application/src/Controller/StatutIntervenantController.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -150,7 +150,7 @@ class StatutIntervenantController extends AbstractController } } return new JsonModel(['msg' => 'Tri des champs effectué']); return new MessengerViewModel(); } } Loading
module/Application/src/Controller/TypeInterventionController.php +1 −1 Changes for module/Application/src/Controller/TypeInterventionController.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -179,7 +179,7 @@ class TypeInterventionController extends AbstractController } } return new JsonModel(['msg' => 'Tri des champs effectué']); return new MessengerViewModel(); } Loading
module/Application/view/application/chargens/seuil.phtml +14 −15 Changes for module/Application/view/application/chargens/seuil.phtml: 14 added lines, 15 removed lines. Original line number Diff line number Diff line Loading @@ -88,37 +88,36 @@ $canEditcomp = $this->isAllowed(Privileges::getResourceId(Privileges::CHARGENS_S function changementSeuil(element) { var url = "<?= $scenario ? $this->url('chargens/seuil/modifier', ['scenario' => $scenario->getId()]) : null ?>"; var params = $(element).data(); params.dedoublement = $(element).val(); $.post(url, params, function (data) { alertFlash(data, 'success', 3000); $.ajax({ type: 'POST', url: "<?= $scenario ? $this->url('chargens/seuil/modifier', ['scenario' => $scenario->getId()]) : null ?>", data: {params: params}, success: function () { alertFlash("Tri effectué", 'success', 3000); seuilCalcHeures(); }).fail(function (jqXHR) { alertFlash(data, 'error', 3000); console.log(jqXHR); }, }); } function seuilCalcHeures() { var url = "<?= $scenario ? $this->url('chargens/seuil/calc-heures', ['scenario' => $scenario->getId()]) : null ?>"; $.post(url, {}, function (data) { $.ajax({ type: 'POST', url: "<?= $scenario ? $this->url('chargens/seuil/calc-heures', ['scenario' => $scenario->getId()]) : null ?>", data: {}, success: function (data) { for (sid in data) { $('#heures-' + sid).html( 'Heures (FI) : ' + Formatter.floatToString(data[sid]['heures']) + '; HETD (FI) : ' + Formatter.floatToString(data[sid]['hetd']) ); } }).fail(function (jqXHR) { console.log(jqXHR); } }); } function changeScenario() Loading
module/Application/view/application/formule/test-saisir.phtml +10 −4 Changes for module/Application/view/application/formule/test-saisir.phtml: 10 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -567,9 +567,14 @@ echo $this->tag('h1', ['class' => 'page-header'])->html($title); if (this.id) url += '/' + this.id; that.saving = true; $.post(url, {"data": JSON.stringify(that.getData())}, function (data) { $.ajax({ type: 'POST', url: url, data: {data: JSON.stringify(that.getData())}, success: function (data) { that.element.find('.errors').html(''); console.log(data.data); that.setData(data.data); if (data.errors) { for (e in data.errors) { Loading @@ -581,11 +586,12 @@ echo $this->tag('h1', ['class' => 'page-header'])->html($title); } } that.saving = false; }).fail(function (jqXHR) { }, error: function (jqXHR) { alertFlash(jqXHR.responseText, 'error', 5000); console.log(jqXHR); that.saving = false; } }); return result; Loading
module/Application/view/application/intervenant/cloturer-saisie.phtml +6 −1 Changes for module/Application/view/application/intervenant/cloturer-saisie.phtml: 6 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -21,8 +21,13 @@ $libelle = $this->translate('J\'ai terminé la saisie de la totalité de mon ser if (!confirm("<?= $this->confirm ?>")) { return; } $.post(url, {cloturer: 1}, function() { $.ajax({ type: 'POST', url: url, data: {cloturer: 1}, success: function () { window.location.reload(); }, }); }); }); Loading