merge from dev
This commit is contained in:
parent
d96250df7f
commit
bcfee41a57
318 changed files with 54424 additions and 6419 deletions
30
dashboard-ui/bower_components/jquery/test/data/ajax/onunload.html
vendored
Normal file
30
dashboard-ui/bower_components/jquery/test/data/ajax/onunload.html
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
|
||||
<title>onunload ajax requests (#14379)</title>
|
||||
<script src="../../jquery.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<form id="navigate" action="../iframe.html"></form>
|
||||
<script>
|
||||
jQuery( window ).on( "unload", function() {
|
||||
var ajaxStatus;
|
||||
jQuery.ajax({
|
||||
url: "../name.html",
|
||||
async: false,
|
||||
complete: function( xhr, status ) {
|
||||
ajaxStatus = status;
|
||||
}
|
||||
});
|
||||
parent.iframeCallback( ajaxStatus );
|
||||
});
|
||||
|
||||
jQuery(function() {
|
||||
setTimeout(function() {
|
||||
document.getElementById( "navigate" ).submit();
|
||||
}, 0 );
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue