|
@ -15,7 +15,6 @@ $.fn.popup = function(parameters) { |
|
|
var |
|
|
var |
|
|
$allModules = $(this), |
|
|
$allModules = $(this), |
|
|
$document = $(document), |
|
|
$document = $(document), |
|
|
$body = $('body'), |
|
|
|
|
|
|
|
|
|
|
|
moduleSelector = $allModules.selector || '', |
|
|
moduleSelector = $allModules.selector || '', |
|
|
|
|
|
|
|
@ -45,6 +44,7 @@ $.fn.popup = function(parameters) { |
|
|
moduleNamespace = 'module-' + namespace, |
|
|
moduleNamespace = 'module-' + namespace, |
|
|
|
|
|
|
|
|
$module = $(this), |
|
|
$module = $(this), |
|
|
|
|
|
$context = $(settings.context), |
|
|
$target = (settings.target) |
|
|
$target = (settings.target) |
|
|
? $(settings.target) |
|
|
? $(settings.target) |
|
|
: $module, |
|
|
: $module, |
|
@ -173,7 +173,7 @@ $.fn.popup = function(parameters) { |
|
|
else { |
|
|
else { |
|
|
module.verbose('Appending popup element to body', $popup); |
|
|
module.verbose('Appending popup element to body', $popup); |
|
|
$popup |
|
|
$popup |
|
|
.appendTo( $body ) |
|
|
|
|
|
|
|
|
.appendTo( $context ) |
|
|
; |
|
|
; |
|
|
} |
|
|
} |
|
|
$.proxy(settings.onCreate, $popup)(); |
|
|
$.proxy(settings.onCreate, $popup)(); |
|
@ -239,7 +239,7 @@ $.fn.popup = function(parameters) { |
|
|
return ( $popup.size() !== 0 ); |
|
|
return ( $popup.size() !== 0 ); |
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
|
return ( $popup.parent($body).size() ); |
|
|
|
|
|
|
|
|
return ( $popup.parent($context).size() ); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
@ -757,6 +757,7 @@ $.fn.popup.settings = { |
|
|
target : false, |
|
|
target : false, |
|
|
closable : true, |
|
|
closable : true, |
|
|
|
|
|
|
|
|
|
|
|
context : 'body', |
|
|
position : 'top center', |
|
|
position : 'top center', |
|
|
delay : 150, |
|
|
delay : 150, |
|
|
inline : false, |
|
|
inline : false, |
|
|