public function actionDivisionStore() { return $this->render('division-store'); }
public function actionDivisionStorePrint() { return $this->render('division-store-print'); }
public function actionStoreOrderScore() { return $this->render('store-order-score'); }
- public function actionAjaxDivisionAutoHandStart() { return $this->render('ajax-division-auto-hand-start'); }
+ public function actionAjaxDivisionAutoHandStart() { return $this->renderPartial('ajax-division-auto-hand-start'); }
}
\ No newline at end of file
function ajaxDivisionAutoHandStart(product_id){
$('#modal-7 .modal-body').html('Считаем данные');
jQuery('#modal-7').modal('show', {backdrop: 'static'}); $('#modal-7 .modal-title').text('Обновляем данные для авто-добавки деления');
+
+ const param3 = $('meta[name=csrf-param]').attr('content');
+ const token3 = $('meta[name=csrf-token]').attr('content');
$.ajax({
- url: '/shipment/ajaxDivisionAutoHandStart/',
+ url: '/shipment/ajax-division-auto-hand-start/',
method: 'post',
dataType: 'html',
- data: { id: $orderId, product_id: product_id},
+ data: { id: $orderId, product_id: product_id, [param3]:token3},
success: function(data){
$('#modal-7 .modal-body').html(data);