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;
|
||||
|
||||
return {
|
||||
async: true,
|
||||
|
||||
/*@
|
||||
bindEvent <f> Bind event
|
||||
|
|
@ -139,6 +140,7 @@ Ox.Request = (function() {
|
|||
} else {
|
||||
pending[req] = true;
|
||||
$.ajax({
|
||||
async: Ox.Request.async,
|
||||
beforeSend: function(request) {
|
||||
var csrftoken = Ox.Cookies('csrftoken');
|
||||
if (csrftoken) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue