Commit ae1dad15 authored by Shakarim Sapa's avatar Shakarim Sapa

- test

parent 34628ba2
...@@ -17,6 +17,9 @@ use common\modules\bids\models\Bid; ...@@ -17,6 +17,9 @@ use common\modules\bids\models\Bid;
$form = ActiveForm::begin([ $form = ActiveForm::begin([
'action' => '/bids/bid/blogadd', 'action' => '/bids/bid/blogadd',
'enableClientValidation' => false, 'enableClientValidation' => false,
'afterSubmit' => new \yii\web\JsExpression('function($form, data, status, xhr) {
alert("ASD");
}'),
'options' => [ 'options' => [
'class' => 'subsc_blog_form bids-form', 'class' => 'subsc_blog_form bids-form',
'data-title' => $title, 'data-title' => $title,
...@@ -47,12 +50,3 @@ use common\modules\bids\models\Bid; ...@@ -47,12 +50,3 @@ use common\modules\bids\models\Bid;
<?php ActiveForm::end(); ?> <?php ActiveForm::end(); ?>
</div> </div>
\ No newline at end of file
<script type='text/javascript'>
$('form.subsc_blog_form').on('ajaxComplete', function(event, jqXHR, settings) {
var form = $(this);
alert('asd');
return false;
});
</script>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment