|
@@ -186,8 +186,10 @@ $filterurl = \yii\helpers\Url::base('https')."/inquirer/ajax";
|
|
$this->registerJs(
|
|
$this->registerJs(
|
|
<<<JS
|
|
<<<JS
|
|
function sendask(idq){
|
|
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()
|
|
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' ){
|
|
if( data.status == 'ok' ){
|
|
//document.location.reload();
|
|
//document.location.reload();
|
|
console.log(data.status);
|
|
console.log(data.status);
|