Browse Source

Fixes #1272, popup refresh was removing popup inappropriately

1.0
jlukic 10 years ago
parent
commit
2239033442
1 changed files with 8 additions and 6 deletions
  1. 14
      src/definitions/modules/popup.js

14
src/definitions/modules/popup.js

@ -105,12 +105,14 @@ $.fn.popup = function(parameters) {
}, },
refresh: function() { refresh: function() {
$popup = (settings.popup)
? $(settings.popup)
: (settings.inline)
? $target.next(settings.selector.popup)
: false
;
if(settings.popup) {
$popup = $(settings.popup);
}
else {
if(settings.inline) {
$target.next(settings.selector.popup);
}
}
if(settings.popup) { if(settings.popup) {
$popup.addClass(className.loading); $popup.addClass(className.loading);
$offsetParent = $popup.offsetParent(); $offsetParent = $popup.offsetParent();

Loading…
Cancel
Save