Loading module/Plafond/config/module.config.php +1 −5 Changes for module/Plafond/config/module.config.php: 1 added line, 5 removed lines. Original line number Diff line number Diff line Loading @@ -68,11 +68,7 @@ return [ 'controller' => Controller\PlafondController::class, 'action' => 'config-mission', ], 'config-application' => [ 'route' => '/config/application', 'controller' => Controller\PlafondController::class, 'action' => 'config-application', ], 'construire-calculer' => [ 'route' => '/construire-calculer', Loading module/Plafond/src/View/Helper/PlafondConfigElementViewHelper.php +5 −9 Changes for module/Plafond/src/View/Helper/PlafondConfigElementViewHelper.php: 5 added lines, 9 removed lines. Original line number Diff line number Diff line Loading @@ -100,7 +100,6 @@ class PlafondConfigElementViewHelper extends AbstractHtmlElement public function script($entity = null) { $urls = [ '*' => 'plafond/config-application', FonctionReferentiel::class => 'plafond/config-referentiel', Structure::class => 'plafond/config-structure', Statut::class => 'plafond/config-statut', Loading @@ -109,9 +108,6 @@ class PlafondConfigElementViewHelper extends AbstractHtmlElement if (is_object($entity)) { $url = $this->getView()->url($urls[get_class($entity)]); $entityId = $entity->getId(); } else { $url = $this->getView()->url($urls['*']); $entityId = null; } ?> Loading @@ -119,8 +115,7 @@ class PlafondConfigElementViewHelper extends AbstractHtmlElement WidgetInitializer.add('plafonds-config', { change: function (el) { change: function (el) { $.ajax({ url: '<?= $url ?>', type: 'POST', Loading @@ -139,14 +134,15 @@ class PlafondConfigElementViewHelper extends AbstractHtmlElement }); }, _create: function () { _create: function () { var that = this; var elsel = '[data-name=\"plafondEtatPrevu\"],[data-name=\"plafondEtatRealise\"],[data-name=\"heures\"]'; this.element.find(elsel).each(function () { var thatthat = $(this); thatthat.change(function () { that.change(thatthat) }); thatthat.change(function () { that.change(thatthat) }); }); }, Loading Loading
module/Plafond/config/module.config.php +1 −5 Changes for module/Plafond/config/module.config.php: 1 added line, 5 removed lines. Original line number Diff line number Diff line Loading @@ -68,11 +68,7 @@ return [ 'controller' => Controller\PlafondController::class, 'action' => 'config-mission', ], 'config-application' => [ 'route' => '/config/application', 'controller' => Controller\PlafondController::class, 'action' => 'config-application', ], 'construire-calculer' => [ 'route' => '/construire-calculer', Loading
module/Plafond/src/View/Helper/PlafondConfigElementViewHelper.php +5 −9 Changes for module/Plafond/src/View/Helper/PlafondConfigElementViewHelper.php: 5 added lines, 9 removed lines. Original line number Diff line number Diff line Loading @@ -100,7 +100,6 @@ class PlafondConfigElementViewHelper extends AbstractHtmlElement public function script($entity = null) { $urls = [ '*' => 'plafond/config-application', FonctionReferentiel::class => 'plafond/config-referentiel', Structure::class => 'plafond/config-structure', Statut::class => 'plafond/config-statut', Loading @@ -109,9 +108,6 @@ class PlafondConfigElementViewHelper extends AbstractHtmlElement if (is_object($entity)) { $url = $this->getView()->url($urls[get_class($entity)]); $entityId = $entity->getId(); } else { $url = $this->getView()->url($urls['*']); $entityId = null; } ?> Loading @@ -119,8 +115,7 @@ class PlafondConfigElementViewHelper extends AbstractHtmlElement WidgetInitializer.add('plafonds-config', { change: function (el) { change: function (el) { $.ajax({ url: '<?= $url ?>', type: 'POST', Loading @@ -139,14 +134,15 @@ class PlafondConfigElementViewHelper extends AbstractHtmlElement }); }, _create: function () { _create: function () { var that = this; var elsel = '[data-name=\"plafondEtatPrevu\"],[data-name=\"plafondEtatRealise\"],[data-name=\"heures\"]'; this.element.find(elsel).each(function () { var thatthat = $(this); thatthat.change(function () { that.change(thatthat) }); thatthat.change(function () { that.change(thatthat) }); }); }, Loading