expose async flag to disable it for window.unload events
This commit is contained in:
parent
6e1e2be9c4
commit
f8e48f54ca
1 changed files with 2 additions and 0 deletions
|
|
@ -25,6 +25,7 @@ Ox.Request = (function() {
|
||||||
$element;
|
$element;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
async: true,
|
||||||
|
|
||||||
/*@
|
/*@
|
||||||
bindEvent <f> Bind event
|
bindEvent <f> Bind event
|
||||||
|
|
@ -139,6 +140,7 @@ Ox.Request = (function() {
|
||||||
} else {
|
} else {
|
||||||
pending[req] = true;
|
pending[req] = true;
|
||||||
$.ajax({
|
$.ajax({
|
||||||
|
async: Ox.Request.async,
|
||||||
beforeSend: function(request) {
|
beforeSend: function(request) {
|
||||||
var csrftoken = Ox.Cookies('csrftoken');
|
var csrftoken = Ox.Cookies('csrftoken');
|
||||||
if (csrftoken) {
|
if (csrftoken) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue