diff --git a/application/modules/opac/controllers/PanierController.php b/application/modules/opac/controllers/PanierController.php index 51bba91f64ee9889a022efb4498aea3bf426b660..015ce6280dc88bcd042668d27c27545a06f68965 100644 --- a/application/modules/opac/controllers/PanierController.php +++ b/application/modules/opac/controllers/PanierController.php @@ -26,7 +26,7 @@ class PanierController extends ZendAfi_Controller_Action { parent::preDispatch(); $this->_user = Class_Users::getIdentity(); - if('add-record' == $this->_getParam('action')) + if('add-record-ajax' == $this->_getParam('action')) return; if (!$this->_user) diff --git a/application/modules/opac/views/scripts/panier/add-ajax.phtml b/application/modules/opac/views/scripts/panier/add-ajax.phtml index 64388014ab89edbe78bf8851249d3b37c1ce6123..579757cf3629ef1254ef3d60db86947109d1808e 100644 --- a/application/modules/opac/views/scripts/panier/add-ajax.phtml +++ b/application/modules/opac/views/scripts/panier/add-ajax.phtml @@ -1,5 +1,5 @@ <?php $submit = $this->form->getElement('submit'); -$submit->setAttrib('onclick', "javascript:var form = $(this).closest('form'); initializeAjaxFormSubmit(form); return false;"); +$submit->setAttrib('onclick', "javascript:var form = $(this).closest('form'); initializeAjaxFormSubmit(form); form.submit(); return false;"); echo $this->renderForm($this->form); ?>