diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-01-19 23:25:38 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-01-19 23:25:38 +0000 |
commit | 010385b2fa4f0656953c2fc70c363c9cd9f74a9d (patch) | |
tree | b04f5abb6e314ffb11627f036b8d0404bd56aa63 | |
parent | ebf5160587ec2689a97018bc0c24082a3e84c02e (diff) | |
download | jquery-ui-010385b2fa4f0656953c2fc70c363c9cd9f74a9d.tar.gz jquery-ui-010385b2fa4f0656953c2fc70c363c9cd9f74a9d.zip |
Dialog, position: Removed bgiframe option; always use bgiframe when available.
Fixes #5071 - Remove bgiframe option from all plugins.
-rw-r--r-- | demos/dialog/animated.html | 1 | ||||
-rw-r--r-- | demos/dialog/default.html | 1 | ||||
-rw-r--r-- | demos/dialog/modal-confirmation.html | 1 | ||||
-rw-r--r-- | demos/dialog/modal-form.html | 1 | ||||
-rw-r--r-- | demos/dialog/modal-message.html | 1 | ||||
-rw-r--r-- | demos/dialog/modal.html | 1 | ||||
-rw-r--r-- | tests/unit/dialog/dialog_defaults.js | 1 | ||||
-rw-r--r-- | ui/jquery.ui.dialog.js | 5 | ||||
-rw-r--r-- | ui/jquery.ui.position.js | 2 |
9 files changed, 3 insertions, 11 deletions
diff --git a/demos/dialog/animated.html b/demos/dialog/animated.html index 43dfed061..1e134b3b1 100644 --- a/demos/dialog/animated.html +++ b/demos/dialog/animated.html @@ -17,7 +17,6 @@ <script type="text/javascript" src="../../ui/jquery.effects.explode.js"></script> <link type="text/css" href="../demos.css" rel="stylesheet" /> <script type="text/javascript"> - $.ui.dialog.prototype.options.bgiframe = true; // increase the default animation speed to exaggerate the effect $.fx.speeds._default = 1000; $(function() { diff --git a/demos/dialog/default.html b/demos/dialog/default.html index 2625bdd33..8b44d3027 100644 --- a/demos/dialog/default.html +++ b/demos/dialog/default.html @@ -14,7 +14,6 @@ <script type="text/javascript" src="../../ui/jquery.ui.dialog.js"></script> <link type="text/css" href="../demos.css" rel="stylesheet" /> <script type="text/javascript"> - $.ui.dialog.prototype.options.bgiframe = true; $(function() { $("#dialog").dialog(); }); diff --git a/demos/dialog/modal-confirmation.html b/demos/dialog/modal-confirmation.html index 9e8e86acd..66c999dde 100644 --- a/demos/dialog/modal-confirmation.html +++ b/demos/dialog/modal-confirmation.html @@ -19,7 +19,6 @@ $("#dialog").dialog("destroy"); $("#dialog-confirm").dialog({ - bgiframe: true, resizable: false, height:140, modal: true, diff --git a/demos/dialog/modal-form.html b/demos/dialog/modal-form.html index 36160b159..65ac49b3c 100644 --- a/demos/dialog/modal-form.html +++ b/demos/dialog/modal-form.html @@ -73,7 +73,6 @@ } $("#dialog-form").dialog({ - bgiframe: true, autoOpen: false, height: 300, width: 350, diff --git a/demos/dialog/modal-message.html b/demos/dialog/modal-message.html index 6478b84d9..7346011ab 100644 --- a/demos/dialog/modal-message.html +++ b/demos/dialog/modal-message.html @@ -20,7 +20,6 @@ $("#dialog").dialog("destroy"); $("#dialog-message").dialog({ - bgiframe: true, modal: true, buttons: { Ok: function() { diff --git a/demos/dialog/modal.html b/demos/dialog/modal.html index 276c49717..2f0df5888 100644 --- a/demos/dialog/modal.html +++ b/demos/dialog/modal.html @@ -19,7 +19,6 @@ $("#dialog").dialog("destroy"); $("#dialog-modal").dialog({ - bgiframe: true, height: 140, modal: true }); diff --git a/tests/unit/dialog/dialog_defaults.js b/tests/unit/dialog/dialog_defaults.js index 9607bf194..999021d95 100644 --- a/tests/unit/dialog/dialog_defaults.js +++ b/tests/unit/dialog/dialog_defaults.js @@ -4,7 +4,6 @@ var dialog_defaults = { autoOpen: true, - bgiframe: false, buttons: {}, closeOnEscape: true, closeText: 'close', diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index 264a8b05b..25352c993 100644 --- a/ui/jquery.ui.dialog.js +++ b/ui/jquery.ui.dialog.js @@ -27,7 +27,6 @@ var uiDialogClasses = $.widget("ui.dialog", { options: { autoOpen: true, - bgiframe: false, buttons: {}, closeOnEscape: true, closeText: 'close', @@ -146,7 +145,7 @@ $.widget("ui.dialog", { self._createButtons(options.buttons); self._isOpen = false; - (options.bgiframe && $.fn.bgiframe && uiDialog.bgiframe()); + ($.fn.bgiframe && uiDialog.bgiframe()); }, _init: function() { if ( this.options.autoOpen ) { @@ -606,7 +605,7 @@ $.extend($.ui.dialog.overlay, { height: this.height() }); - (dialog.options.bgiframe && $.fn.bgiframe && $el.bgiframe()); + ($.fn.bgiframe && $el.bgiframe()); this.instances.push($el); return $el; diff --git a/ui/jquery.ui.position.js b/ui/jquery.ui.position.js index b9587387c..a6c28e18f 100644 --- a/ui/jquery.ui.position.js +++ b/ui/jquery.ui.position.js @@ -140,7 +140,7 @@ $.fn.position = function(options) { })); }); - (options.bgiframe !== false && $.fn.bgiframe && elem.bgiframe()); + ($.fn.bgiframe && elem.bgiframe()); elem.offset($.extend(position, { using: options.using })); }); }; |