diff --git a/src/main/resources/org/richfaces/renderkit/html/scripts/jquery.pnotify.js b/src/main/resources/org/richfaces/renderkit/html/scripts/jquery.pnotify.js index bf2b9c0..18740d7 100644 --- a/src/main/resources/org/richfaces/renderkit/html/scripts/jquery.pnotify.js +++ b/src/main/resources/org/richfaces/renderkit/html/scripts/jquery.pnotify.js @@ -410,7 +410,7 @@ // Display the notice. pnotify.pnotify_display = function() { // If the notice is not in the DOM, append it. - if (!pnotify.parent().length) + if (!pnotify.parent().length || !pnotify.parent()[0].tagName) pnotify.appendTo(body); // Run callback. if (opts.pnotify_before_open) {