From 223903344299d00841bcf10c97d894cd76762626 Mon Sep 17 00:00:00 2001 From: jlukic Date: Sun, 23 Nov 2014 18:45:55 -0500 Subject: [PATCH] Fixes #1272, popup refresh was removing popup inappropriately --- src/definitions/modules/popup.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/definitions/modules/popup.js b/src/definitions/modules/popup.js index de3b80f5a..789ef6a9f 100644 --- a/src/definitions/modules/popup.js +++ b/src/definitions/modules/popup.js @@ -105,12 +105,14 @@ $.fn.popup = function(parameters) { }, 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) { $popup.addClass(className.loading); $offsetParent = $popup.offsetParent();