merge from dev
This commit is contained in:
parent
d96250df7f
commit
bcfee41a57
318 changed files with 54424 additions and 6419 deletions
20
dashboard-ui/bower_components/jquery/test/data/event/onbeforeunload.html
vendored
Normal file
20
dashboard-ui/bower_components/jquery/test/data/event/onbeforeunload.html
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<script src="../../jquery.js"></script>
|
||||
<script>
|
||||
function report( event ) {
|
||||
var payload = {
|
||||
event: event.type
|
||||
};
|
||||
return parent.postMessage( JSON.stringify(payload), "*" );
|
||||
}
|
||||
|
||||
jQuery( window ).on( "beforeunload", function( event ) {
|
||||
report( event );
|
||||
}).on( "load", function( event ) {
|
||||
setTimeout(function() {
|
||||
window.location.reload();
|
||||
}, 50);
|
||||
});
|
||||
</script>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue