|
|
@ -125,7 +125,7 @@ $.fn.popup = function(parameters) { |
|
|
|
} |
|
|
|
if(settings.popup) { |
|
|
|
$popup.addClass(className.loading); |
|
|
|
$offsetParent = module.get.offsetParent($target); |
|
|
|
$offsetParent = module.get.offsetParent(); |
|
|
|
$popup.removeClass(className.loading); |
|
|
|
if(settings.movePopup && module.has.popup() && module.get.offsetParent($popup)[0] !== $offsetParent[0]) { |
|
|
|
module.debug('Moving popup to the same offset parent as target'); |
|
|
@ -139,7 +139,7 @@ $.fn.popup = function(parameters) { |
|
|
|
$offsetParent = (settings.inline) |
|
|
|
? module.get.offsetParent($target) |
|
|
|
: module.has.popup() |
|
|
|
? module.get.offsetParent($target) |
|
|
|
? module.get.offsetParent($popup) |
|
|
|
: $body |
|
|
|
; |
|
|
|
} |
|
|
|