Commit 793222f7 authored by Shakarim Sapa's avatar Shakarim Sapa

- Fix

parent 7b7175f0
......@@ -56,6 +56,10 @@ if ($cacheEmail!==false && BlogBids::find()->where(['email' => $cacheEmail])->ex
$('form.blog-bid-form').on('beforeSubmit', function(e) {
var form = $(this), xhr = new XMLHttpRequest, filebool = false, file, data = new FormData();
form.find('input, textarea').each(function(){
data.append($(this).attr('name'), $(this).val());
});
xhr.open("POST", form.attr('action'), true);
xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest");
......
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