update components
This commit is contained in:
parent
7537bab562
commit
d84c5a7c1d
226 changed files with 51770 additions and 4157 deletions
18
dashboard-ui/bower_components/jquery/test/data/event/triggerunload.html
vendored
Normal file
18
dashboard-ui/bower_components/jquery/test/data/event/triggerunload.html
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<script src="../../jquery.js"></script>
|
||||
<script>
|
||||
var called = false,
|
||||
error = false;
|
||||
|
||||
window.onerror = function() { error = true; };
|
||||
|
||||
jQuery( window ).on( "beforeunload", function( event ) {
|
||||
called = true;
|
||||
return "maybe";
|
||||
}).on( "load", function( event ) {
|
||||
$( window ).triggerHandler( "beforeunload" );
|
||||
window.parent.iframeCallback( called && !error );
|
||||
});
|
||||
</script>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue