]> source.dussan.org Git - jquery-ui.git/commitdiff
Removed bgiframe.
authorScott González <scott.gonzalez@gmail.com>
Fri, 26 Oct 2012 14:53:17 +0000 (10:53 -0400)
committerScott González <scott.gonzalez@gmail.com>
Fri, 26 Oct 2012 14:53:17 +0000 (10:53 -0400)
16 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
external/jquery.bgiframe-2.1.2.js [deleted file]
tests/unit/dialog/dialog.html
tests/visual/dialog/animated.html
tests/visual/dialog/complex-dialogs.html
tests/visual/dialog/form.html
tests/visual/dialog/performance.html
ui/jquery.ui.autocomplete.js
ui/jquery.ui.dialog.js
ui/jquery.ui.position.js
ui/jquery.ui.tooltip.js

index 808d0e926ca1fe2d38e2b9f6c09c66aa44a0ac15..92d7b642dbd07558cb00e2530ebb2071f14896c3 100644 (file)
@@ -5,7 +5,6 @@
        <title>jQuery UI Dialog - Animation</title>
        <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
        <script src="../../jquery-1.8.2.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 5dcb1a05c6299c4fa6235f1718d41d4e3af0a208..19cf912e29867c42034856d239d67d04f540e37b 100644 (file)
@@ -5,7 +5,6 @@
        <title>jQuery UI Dialog - Default functionality</title>
        <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
        <script src="../../jquery-1.8.2.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 cca3b296dd8ddcefe1b61d217b28cc44acb69e83..b9bf6396ff13cdff025c80371b6298ad13f487e2 100644 (file)
@@ -5,7 +5,6 @@
        <title>jQuery UI Dialog - Modal confirmation</title>
        <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
        <script src="../../jquery-1.8.2.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 48452f86294bb22603a25308aa5fcaa1e37f2c8a..1c0cd6fc3b8c9665052b44a00b88aada21e1d4a6 100644 (file)
@@ -5,7 +5,6 @@
        <title>jQuery UI Dialog - Modal form</title>
        <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
        <script src="../../jquery-1.8.2.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 d4433101779602c4563d8dbe6c787bee43d89c62..3c877b26e8055d0b59228f5006090810c092b907 100644 (file)
@@ -5,7 +5,6 @@
        <title>jQuery UI Dialog - Modal message</title>
        <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
        <script src="../../jquery-1.8.2.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 2b1ac25745df38c9f9ac0c9b73d32e127b8eb84b..9bb6d95b24ea25b6cf15b81a6c0588a844dd367f 100644 (file)
@@ -5,7 +5,6 @@
        <title>jQuery UI Dialog - Basic modal</title>
        <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
        <script src="../../jquery-1.8.2.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.2.js b/external/jquery.bgiframe-2.1.2.js
deleted file mode 100644 (file)
index 5cd38bb..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/*! 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 5a7fc8fe57abdd5fedd502b6a00e3a32deb07cec..c00c52fab4920ee9e66cbc4661bcfde76f2678db 100644 (file)
@@ -5,7 +5,6 @@
        <title>jQuery UI Dialog Test Suite</title>
 
        <script src="../../jquery.js"></script>
-       <script src="../../../external/jquery.bgiframe-2.1.2.js"></script>
        <link rel="stylesheet" href="../../../external/qunit.css">
        <script src="../../../external/qunit.js"></script>
        <script src="../../jquery.simulate.js"></script>
index 2a4c38d2ee51a40b4aa4dc8f17e43f642ef055d1..8fc296471c3c493896989c73a3375b56d12096d2 100644 (file)
@@ -5,7 +5,6 @@
        <title>Dialog Visual Test</title>
        <link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css">
        <script src="../../../jquery-1.8.2.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 2647871857416b35f3c869d9e84061852c2b161d..f6d4aa16266f26b4d19314f22feda1b5066c0ef7 100644 (file)
@@ -5,7 +5,6 @@
        <title>Dialog Visual Test</title>
        <link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css">
        <script src="../../../jquery-1.8.2.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 c974a500a45cffb9eef7f5011b3b5111389c9db5..47ed5e0b527a495cdf28b4ec615e142ae3cf7852 100644 (file)
@@ -5,7 +5,6 @@
        <title>Dialog Visual Test</title>
        <link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css">
        <script src="../../../jquery-1.8.2.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 0b3bc6e58fd0d0d869766d660888db4b1af9aa65..fb863488d23d9708ab6179f2b488831b7e32532d 100644 (file)
@@ -5,7 +5,6 @@
        <title>Dialog Visual Test - Modal Dialog in Large DOM</title>
        <link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css">
        <script src="../../../jquery-1.8.2.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.position.js"></script>
        <script src="../../../ui/jquery.ui.widget.js"></script>
index 327bfa17e2fced3382332b58b8fcac0ef2aa499e..1da5a6b256f68bf511d9ea505b6f7fe3446b7efa 100644 (file)
@@ -288,10 +288,6 @@ $.widget( "ui.autocomplete", {
                        .addClass( "ui-helper-hidden-accessible" )
                        .insertAfter( this.element );
 
-               if ( $.fn.bgiframe ) {
-                       this.menu.element.bgiframe();
-               }
-
                // turning off autocomplete prevents the browser from remembering the
                // value when navigating through history, so we re-enable autocomplete
                // if the page is unloaded before the widget is destroyed. #7790
index 4188a38c01a437557ba356c67ffe911c8ad85274..e96802e969c5cba4860530573328705f2f6ea89d 100644 (file)
@@ -170,10 +170,6 @@ $.widget("ui.dialog", {
                this._createButtons( options.buttons );
                this._isOpen = false;
 
-               if ( $.fn.bgiframe ) {
-                       uiDialog.bgiframe();
-               }
-
                // prevent tabbing out of dialogs
                this._on( uiDialog, { keydown: function( event ) {
                        if ( event.keyCode !== $.ui.keyCode.TAB ) {
@@ -670,10 +666,6 @@ $.extend( $.ui.dialog.overlay, {
                        dialog._keepFocus( event );
                });
 
-               if ( $.fn.bgiframe ) {
-                       $el.bgiframe();
-               }
-
                this.instances.push( $el );
                return $el;
        },
index edbb0f6ff87b36660bbc7413ec64872bb7305b49..a5dc31834385b836e6521e23b9a5afa6fcdc3704 100644 (file)
@@ -230,10 +230,6 @@ $.fn.position = function( options ) {
                        }
                });
 
-               if ( $.fn.bgiframe ) {
-                       elem.bgiframe();
-               }
-
                if ( options.using ) {
                        // adds feedback as second argument to using callback, if present
                        using = function( props ) {
index f93dd7a2f84a5afb3fb39113bf91536c7fcac501..f1f919ad3bbe8bfb37054ce1fec4b238d8105456 100644 (file)
@@ -357,9 +357,6 @@ $.widget( "ui.tooltip", {
                        .addClass( "ui-tooltip-content" )
                        .appendTo( tooltip );
                tooltip.appendTo( this.document[0].body );
-               if ( $.fn.bgiframe ) {
-                       tooltip.bgiframe();
-               }
                this.tooltips[ id ] = element;
                return tooltip;
        },