]> source.dussan.org Git - jquery-ui.git/commitdiff
External: Updated bgiframe to 2.1.2. Fixes #6190 - Dialog demos don't work in IE9...
authorScott González <scott.gonzalez@gmail.com>
Wed, 20 Oct 2010 03:05:13 +0000 (23:05 -0400)
committerScott González <scott.gonzalez@gmail.com>
Wed, 20 Oct 2010 03:05:13 +0000 (23:05 -0400)
22 files changed:
demos/dialog/animated.html
demos/dialog/default.html
demos/dialog/modal-confirmation.html
demos/dialog/modal-form.html
demos/dialog/modal-message.html
demos/dialog/modal.html
demos/index.html
external/jquery.bgiframe-2.1.1.js [deleted file]
external/jquery.bgiframe-2.1.2.js [new file with mode: 0644]
tests/unit/dialog/dialog.html
tests/visual/dialog/dialog.html
tests/visual/dialog/dialog_on_page_with_large_dom.html
tests/visual/dialog/dialog_on_page_with_scrollbars.html
tests/visual/dialog/dialog_option_buttons_OK_Cancel.html
tests/visual/dialog/dialog_option_closeOnEscape_false.html
tests/visual/dialog/dialog_option_closeOnEscape_true.html
tests/visual/dialog/dialog_option_modal_false.html
tests/visual/dialog/dialog_option_modal_true.html
tests/visual/dialog/dialog_option_position_right_top.html
tests/visual/dialog/dialog_ticket_4350.html
tests/visual/dialog/dialog_ticket_4826.html
tests/visual/menu/nested.html

index 0d74662eebd3f07d782b5d0e7f8d5e91e5b4e1c5..14a0fd7c96d7fae21161365a005c827ca2977d28 100644 (file)
@@ -5,7 +5,7 @@
        <title>jQuery UI Dialog - Animation</title>
        <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
        <script src="../../jquery-1.4.2.js"></script>
-       <script src="../../external/jquery.bgiframe-2.1.1.js"></script>
+       <script src="../../external/jquery.bgiframe-2.1.2.js"></script>
        <script src="../../ui/jquery.ui.core.js"></script>
        <script src="../../ui/jquery.ui.widget.js"></script>
        <script src="../../ui/jquery.ui.mouse.js"></script>
index df38c712720ef8d24be9947afc921138c4f1fc44..d28a6ba04737150cc9ebc7390c4bd2ac4d2a0f8a 100644 (file)
@@ -5,7 +5,7 @@
        <title>jQuery UI Dialog - Default functionality</title>
        <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
        <script src="../../jquery-1.4.2.js"></script>
-       <script src="../../external/jquery.bgiframe-2.1.1.js"></script>
+       <script src="../../external/jquery.bgiframe-2.1.2.js"></script>
        <script src="../../ui/jquery.ui.core.js"></script>
        <script src="../../ui/jquery.ui.widget.js"></script>
        <script src="../../ui/jquery.ui.mouse.js"></script>
index bed319a950f2750b8267b661c2f859ba28a9891a..b08c1a76af5dd82ccbffe50bccb97a3087a74cf7 100644 (file)
@@ -5,7 +5,7 @@
        <title>jQuery UI Dialog - Modal confirmation</title>
        <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
        <script src="../../jquery-1.4.2.js"></script>
-       <script src="../../external/jquery.bgiframe-2.1.1.js"></script>
+       <script src="../../external/jquery.bgiframe-2.1.2.js"></script>
        <script src="../../ui/jquery.ui.core.js"></script>
        <script src="../../ui/jquery.ui.widget.js"></script>
        <script src="../../ui/jquery.ui.mouse.js"></script>
index b008a8cf9e1b8487337c734306eb32f1fcaf76a8..b700a68ba691e68d146614135a33ed02c1a8220c 100644 (file)
@@ -5,7 +5,7 @@
        <title>jQuery UI Dialog - Modal form</title>
        <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
        <script src="../../jquery-1.4.2.js"></script>
-       <script src="../../external/jquery.bgiframe-2.1.1.js"></script>
+       <script src="../../external/jquery.bgiframe-2.1.2.js"></script>
        <script src="../../ui/jquery.ui.core.js"></script>
        <script src="../../ui/jquery.ui.widget.js"></script>
        <script src="../../ui/jquery.ui.mouse.js"></script>
index 18e84e87d0d2de701b61b83e7a0670598ea978cd..24518006ac90e542149606fa7fd4e37bd621f54f 100644 (file)
@@ -5,7 +5,7 @@
        <title>jQuery UI Dialog - Modal message</title>
        <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
        <script src="../../jquery-1.4.2.js"></script>
-       <script src="../../external/jquery.bgiframe-2.1.1.js"></script>
+       <script src="../../external/jquery.bgiframe-2.1.2.js"></script>
        <script src="../../ui/jquery.ui.core.js"></script>
        <script src="../../ui/jquery.ui.widget.js"></script>
        <script src="../../ui/jquery.ui.mouse.js"></script>
index 1664bd1a673412b76115eae86db1028b45172236..551926473b7b11fd9a50a033e2be2be520b1751c 100644 (file)
@@ -5,7 +5,7 @@
        <title>jQuery UI Dialog - Basic modal</title>
        <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
        <script src="../../jquery-1.4.2.js"></script>
-       <script src="../../external/jquery.bgiframe-2.1.1.js"></script>
+       <script src="../../external/jquery.bgiframe-2.1.2.js"></script>
        <script src="../../ui/jquery.ui.core.js"></script>
        <script src="../../ui/jquery.ui.widget.js"></script>
        <script src="../../ui/jquery.ui.mouse.js"></script>
index fa621587853a4d0c86f209efd6a8fb7cba63ae8d..1a383cc7af5ecc32e752da8443eae0ad9a05cc3a 100644 (file)
@@ -6,7 +6,7 @@
        <link rel="stylesheet" href="../themes/base/jquery.ui.all.css">
        <link rel="stylesheet" href="demos.css">
        <script src="../jquery-1.4.2.js"></script>
-       <script src="../external/jquery.bgiframe-2.1.1.js"></script>
+       <script src="../external/jquery.bgiframe-2.1.2.js"></script>
        <script src="../ui/jquery.ui.core.js"></script>
        <script src="../ui/jquery.ui.widget.js"></script>
        <script src="../ui/jquery.ui.mouse.js"></script>
diff --git a/external/jquery.bgiframe-2.1.1.js b/external/jquery.bgiframe-2.1.1.js
deleted file mode 100644 (file)
index ef8679d..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-/* Copyright (c) 2006 Brandon Aaron (http://brandonaaron.net)
- * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) 
- * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
- *
- * $LastChangedDate: 2007-07-21 18:45:56 -0500 (Sat, 21 Jul 2007) $
- * $Rev: 2447 $
- *
- * Version 2.1.1
- */
-(function($){$.fn.bgIframe=$.fn.bgiframe=function(s){if($.browser.msie&&/6.0/.test(navigator.userAgent)){s=$.extend({top:'auto',left:'auto',width:'auto',height:'auto',opacity:true,src:'javascript:false;'},s||{});var prop=function(n){return n&&n.constructor==Number?n+'px':n;},html='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+s.src+'"'+'style="display:block;position:absolute;z-index:-1;'+(s.opacity!==false?'filter:Alpha(Opacity=\'0\');':'')+'top:'+(s.top=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+\'px\')':prop(s.top))+';'+'left:'+(s.left=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+\'px\')':prop(s.left))+';'+'width:'+(s.width=='auto'?'expression(this.parentNode.offsetWidth+\'px\')':prop(s.width))+';'+'height:'+(s.height=='auto'?'expression(this.parentNode.offsetHeight+\'px\')':prop(s.height))+';'+'"/>';return this.each(function(){if($('> iframe.bgiframe',this).length==0)this.insertBefore(document.createElement(html),this.firstChild);});}return this;};})(jQuery);
\ No newline at end of file
diff --git a/external/jquery.bgiframe-2.1.2.js b/external/jquery.bgiframe-2.1.2.js
new file mode 100644 (file)
index 0000000..5cd38bb
--- /dev/null
@@ -0,0 +1,39 @@
+/*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)
+ * Licensed under the MIT License (LICENSE.txt).
+ *
+ * Version 2.1.2
+ */
+
+(function($){
+
+$.fn.bgiframe = ($.browser.msie && /msie 6\.0/i.test(navigator.userAgent) ? function(s) {
+    s = $.extend({
+        top     : 'auto', // auto == .currentStyle.borderTopWidth
+        left    : 'auto', // auto == .currentStyle.borderLeftWidth
+        width   : 'auto', // auto == offsetWidth
+        height  : 'auto', // auto == offsetHeight
+        opacity : true,
+        src     : 'javascript:false;'
+    }, s);
+    var html = '<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+s.src+'"'+
+                   'style="display:block;position:absolute;z-index:-1;'+
+                       (s.opacity !== false?'filter:Alpha(Opacity=\'0\');':'')+
+                       'top:'+(s.top=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+\'px\')':prop(s.top))+';'+
+                       'left:'+(s.left=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+\'px\')':prop(s.left))+';'+
+                       'width:'+(s.width=='auto'?'expression(this.parentNode.offsetWidth+\'px\')':prop(s.width))+';'+
+                       'height:'+(s.height=='auto'?'expression(this.parentNode.offsetHeight+\'px\')':prop(s.height))+';'+
+                '"/>';
+    return this.each(function() {
+        if ( $(this).children('iframe.bgiframe').length === 0 )
+            this.insertBefore( document.createElement(html), this.firstChild );
+    });
+} : function() { return this; });
+
+// old alias
+$.fn.bgIframe = $.fn.bgiframe;
+
+function prop(n) {
+    return n && n.constructor === Number ? n + 'px' : n;
+}
+
+})(jQuery);
\ No newline at end of file
index f2e47b978564d35bb4fd966156340b936a215108..46c189e4880c34285a4f8ef883f33515576c91a2 100644 (file)
@@ -7,7 +7,7 @@
        <link type="text/css" href="../../../themes/base/jquery.ui.dialog.css" rel="stylesheet" />
 
        <script type="text/javascript" src="../../../jquery-1.4.2.js"></script>
-       <script type="text/javascript" src="../../../external/jquery.bgiframe-2.1.1.js"></script>
+       <script type="text/javascript" src="../../../external/jquery.bgiframe-2.1.2.js"></script>
        <script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
        <script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
        <script type="text/javascript" src="../../../ui/jquery.ui.mouse.js"></script>
index 31ffda0b02476302fa84d4324b004c5e91c98643..b0a3012193187dba21b5be777dcdaafa7e004747 100644 (file)
@@ -6,7 +6,7 @@
        <link rel="stylesheet" href="../visual.css" type="text/css" />
        <link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css" type="text/css">
        <script type="text/javascript" src="../../../jquery-1.4.2.js"></script>
-       <script type="text/javascript" src="../../../external/jquery.bgiframe-2.1.1.js"></script>
+       <script type="text/javascript" src="../../../external/jquery.bgiframe-2.1.2.js"></script>
        <script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
        <script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
        <script type="text/javascript" src="../../../ui/jquery.ui.mouse.js"></script>
index 92f03eb5be91938a06728a1258867956f12f479c..30fc5af6573b39749590fa79c252eb66f32d9967 100644 (file)
@@ -6,7 +6,7 @@
        <link rel="stylesheet" href="../visual.css" type="text/css" />
        <link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css" type="text/css">
        <script type="text/javascript" src="../../../jquery-1.4.2.js"></script>
-       <script type="text/javascript" src="../../../external/jquery.bgiframe-2.1.1.js"></script>
+       <script type="text/javascript" src="../../../external/jquery.bgiframe-2.1.2.js"></script>
        <script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
        <script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
        <script type="text/javascript" src="../../../ui/jquery.ui.draggable.js"></script>
index a43ee6e42076f02b262da71e57af201dc03ea98d..fd30c6bcddc348037ea9b42e23b8862ce4ed03f2 100644 (file)
@@ -6,7 +6,7 @@
        <link rel="stylesheet" href="../visual.css" type="text/css" />
        <link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css" type="text/css">
        <script type="text/javascript" src="../../../jquery-1.4.2.js"></script>
-       <script type="text/javascript" src="../../../external/jquery.bgiframe-2.1.1.js"></script>
+       <script type="text/javascript" src="../../../external/jquery.bgiframe-2.1.2.js"></script>
        <script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
        <script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
        <script type="text/javascript" src="../../../ui/jquery.ui.draggable.js"></script>
index d511860391a2ce74e3af69a14836c96ae5a64464..287ffa6fa28cd2bf7cc715ad74ba7d724479dcd3 100644 (file)
@@ -6,7 +6,7 @@
        <link rel="stylesheet" href="../visual.css" type="text/css" />
        <link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css" type="text/css">
        <script type="text/javascript" src="../../../jquery-1.4.2.js"></script>
-       <script type="text/javascript" src="../../../external/jquery.bgiframe-2.1.1.js"></script>
+       <script type="text/javascript" src="../../../external/jquery.bgiframe-2.1.2.js"></script>
        <script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
        <script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
        <script type="text/javascript" src="../../../ui/jquery.ui.draggable.js"></script>
index 681cc3c65a36b54dc9935bfdc9d06512d68dacfa..5c5cb9c5f918763e26e55696e4e3b1078a1c8f90 100644 (file)
@@ -6,7 +6,7 @@
        <link rel="stylesheet" href="../visual.css" type="text/css" />
        <link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css" type="text/css">
        <script type="text/javascript" src="../../../jquery-1.4.2.js"></script>
-       <script type="text/javascript" src="../../../external/jquery.bgiframe-2.1.1.js"></script>
+       <script type="text/javascript" src="../../../external/jquery.bgiframe-2.1.2.js"></script>
        <script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
        <script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
        <script type="text/javascript" src="../../../ui/jquery.ui.draggable.js"></script>
index c05cb525127eb94955db2cf00af5d3909dc489d1..88bcb50fb1f95ba273b72ed63bb1baf3c1af9f90 100644 (file)
@@ -6,7 +6,7 @@
        <link rel="stylesheet" href="../visual.css" type="text/css" />
        <link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css" type="text/css">
        <script type="text/javascript" src="../../../jquery-1.4.2.js"></script>
-       <script type="text/javascript" src="../../../external/jquery.bgiframe-2.1.1.js"></script>
+       <script type="text/javascript" src="../../../external/jquery.bgiframe-2.1.2.js"></script>
        <script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
        <script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
        <script type="text/javascript" src="../../../ui/jquery.ui.draggable.js"></script>
index 43829ae3896dccdc391615a41492456db28096dc..316a0cf75aaa34cb7a1781098cfc5957779f91b0 100644 (file)
@@ -6,7 +6,7 @@
        <link rel="stylesheet" href="../visual.css" type="text/css" />
        <link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css" type="text/css">
        <script type="text/javascript" src="../../../jquery-1.4.2.js"></script>
-       <script type="text/javascript" src="../../../external/jquery.bgiframe-2.1.1.js"></script>
+       <script type="text/javascript" src="../../../external/jquery.bgiframe-2.1.2.js"></script>
        <script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
        <script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
        <script type="text/javascript" src="../../../ui/jquery.ui.draggable.js"></script>
index dcebd5a652df56de3f3a98e52b4e0a06dc139b5d..c941f7b23c5c60e0ed02d33b1b85488f4c81d3f5 100644 (file)
@@ -6,7 +6,7 @@
        <link rel="stylesheet" href="../visual.css" type="text/css" />
        <link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css" type="text/css">
        <script type="text/javascript" src="../../../jquery-1.4.2.js"></script>
-       <script type="text/javascript" src="../../../external/jquery.bgiframe-2.1.1.js"></script>
+       <script type="text/javascript" src="../../../external/jquery.bgiframe-2.1.2.js"></script>
        <script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
        <script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
        <script type="text/javascript" src="../../../ui/jquery.ui.draggable.js"></script>
index d30e190116993748292accc4b970e5b77577d456..dde1a700dfb7c8aec42bf06652498f8b75a7eabb 100644 (file)
@@ -6,7 +6,7 @@
        <link rel="stylesheet" href="../visual.css" type="text/css" />
        <link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css" type="text/css">
        <script type="text/javascript" src="../../../jquery-1.4.2.js"></script>
-       <script type="text/javascript" src="../../../external/jquery.bgiframe-2.1.1.js"></script>
+       <script type="text/javascript" src="../../../external/jquery.bgiframe-2.1.2.js"></script>
        <script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
        <script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
        <script type="text/javascript" src="../../../ui/jquery.ui.draggable.js"></script>
index 67279754eb501706995f2d1848425347445f654a..528ef887c7be31a94cca7a497c39cf7ac1fc8822 100644 (file)
@@ -6,7 +6,7 @@
        <link rel="stylesheet" href="../visual.css" type="text/css" />
        <link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css" type="text/css">
        <script type="text/javascript" src="../../../jquery-1.4.2.js"></script>
-       <script type="text/javascript" src="../../../external/jquery.bgiframe-2.1.1.js"></script>
+       <script type="text/javascript" src="../../../external/jquery.bgiframe-2.1.2.js"></script>
        <script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
        <script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
        <script type="text/javascript" src="../../../ui/jquery.ui.mouse.js"></script>
index 29b2337ceaa598803745df475caeb03f6e92f3fd..edccfac905fc3a3e603e4a336582576a7c414e70 100644 (file)
@@ -6,7 +6,7 @@
        <link rel="stylesheet" href="../visual.css" type="text/css" />
        <link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css" type="text/css">
        <script type="text/javascript" src="../../../jquery-1.4.2.js"></script>
-       <script type="text/javascript" src="../../../external/jquery.bgiframe-2.1.1.js"></script>
+       <script type="text/javascript" src="../../../external/jquery.bgiframe-2.1.2.js"></script>
        <script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
        <script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
        <script type="text/javascript" src="../../../ui/jquery.ui.draggable.js"></script>
index 063b946c7b322e863eb9141eac2913a6d7d7cb2a..114d314f8331de7909e2708a05148a4212083f59 100644 (file)
@@ -9,7 +9,7 @@
        <script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
        <script type="text/javascript" src="../../../ui/jquery.ui.position.js"></script>
        <script type="text/javascript" src="../../../ui/jquery.ui.autocomplete.js"></script>
-       <script type="text/javascript" src="../../../external/jquery.bgiframe-2.1.1.js"></script>
+       <script type="text/javascript" src="../../../external/jquery.bgiframe-2.1.2.js"></script>
        <script type="text/javascript" src="http://jqueryui.com/themeroller/themeswitchertool/"></script>
        <script type="text/javascript">
        $(function() {