Commit 7843962f authored by Shakarim Sapa's avatar Shakarim Sapa

- Test

parent 81fa78ab
......@@ -46,4 +46,26 @@ use common\modules\bids\models\Bid;
<?php ActiveForm::end(); ?>
</div>
\ No newline at end of file
</div>
<script type='text/javascript'>
$(document).ready(
$('form.subsc_blog_form').on('beforeSubmit', function(event, jqXHR, settings) {
var form = $(this);
if(form.find('.has-error').length) {
return false;
}
$.ajax({
url: form.attr('action'),
type: 'post',
data: form.serialize(),
success: function(data) {
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