diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-10-23 11:09:04 -0400 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-10-24 17:03:00 -0400 |
commit | d07074dc3c3b2c73ccf1ed1cb2876df31154e039 (patch) | |
tree | a3f64fe7362566383f4e4b99788a838f94463807 /demos/dialog/animated.html | |
parent | 513b6da641941a54d17880e75d7558b53650f62f (diff) | |
download | jquery-ui-d07074dc3c3b2c73ccf1ed1cb2876df31154e039.tar.gz jquery-ui-d07074dc3c3b2c73ccf1ed1cb2876df31154e039.zip |
Dialog: Use _show and _hide consistently. Fixes #4892 - Dialog: zIndex error with animated modal dialog.
Diffstat (limited to 'demos/dialog/animated.html')
-rw-r--r-- | demos/dialog/animated.html | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/demos/dialog/animated.html b/demos/dialog/animated.html index 8a27150de..808d0e926 100644 --- a/demos/dialog/animated.html +++ b/demos/dialog/animated.html @@ -18,18 +18,21 @@ <script src="../../ui/jquery.ui.effect-explode.js"></script> <link rel="stylesheet" href="../demos.css"> <script> - // increase the default animation speed to exaggerate the effect - $.fx.speeds._default = 1000; $(function() { $( "#dialog" ).dialog({ autoOpen: false, - show: "blind", - hide: "explode" + show: { + effect: "blind", + duration: 1000 + }, + hide: { + effect: "explode", + duration: 1000 + } }); $( "#opener" ).click(function() { $( "#dialog" ).dialog( "open" ); - return false; }); }); </script> |