mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-10-05 01:44:18 +00:00
Draggable: Only run iframeFix logic if the option is truthy. Fixes #7632 - Draggable: iframeFix always runs with old versions of jQuery.
This commit is contained in:
parent
7c15d3c19f
commit
930c65011c
2
ui/jquery.ui.draggable.js
vendored
2
ui/jquery.ui.draggable.js
vendored
@ -80,6 +80,7 @@ $.widget("ui.draggable", $.ui.mouse, {
|
||||
if (!this.handle)
|
||||
return false;
|
||||
|
||||
if ( o.iframeFix ) {
|
||||
$(o.iframeFix === true ? "iframe" : o.iframeFix).each(function() {
|
||||
$('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>')
|
||||
.css({
|
||||
@ -89,6 +90,7 @@ $.widget("ui.draggable", $.ui.mouse, {
|
||||
.css($(this).offset())
|
||||
.appendTo("body");
|
||||
});
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user