|
@@ -186,8 +186,10 @@ $filterurl = \yii\helpers\Url::base('https')."/inquirer/ajax";
|
|
|
$this->registerJs(
|
|
|
<<<JS
|
|
|
function sendask(idq){
|
|
|
+ var param = $('meta[name="csrf-param"]').attr("content");
|
|
|
+ var token = $('meta[name="csrf-token"]').attr("content");
|
|
|
ask = $('input:checked[name=ask_'+idq+']').val()
|
|
|
- $.post( "$filterurl", { 'idq': idq, 'ask': ask }, function( data ) {
|
|
|
+ $.post( "$filterurl", { 'idq': idq, 'ask': ask, '_csrf' : token}, function( data ) {
|
|
|
if( data.status == 'ok' ){
|
|
|
//document.location.reload();
|
|
|
console.log(data.status);
|