diff --git a/app/assets/javascripts/lib/pageslide.js b/app/assets/javascripts/lib/pageslide.js index 59ced3324..c48858f9a 100644 --- a/app/assets/javascripts/lib/pageslide.js +++ b/app/assets/javascripts/lib/pageslide.js @@ -77,6 +77,7 @@ } }); } + if($pageslide.find('.error-cover').length) $pageslide.find('.error-cover').remove(); $pageslide.data( 'localEl', false ); } _checkTitle(settings); @@ -276,7 +277,7 @@ .empty(); } _sliding = false; - if($pageslide.find('.error').length) $pageslide.find('.error').remove(); + if($pageslide.find('.error-cover').length) $pageslide.find('.error-cover').remove(); if(typeof callback != 'undefined') callback(); if(typeof $.fn.pageslide.defaults.closeFn === "function") { $.fn.pageslide.defaults.closeFn.call(this, $pageslide, $element);