From 8e168b0fe18664cbab683ba1f57812687074c29f Mon Sep 17 00:00:00 2001 From: chris Date: Sun, 20 Oct 2013 21:16:17 +0800 Subject: [PATCH] Remove erro-cover on close and loadComplete --- app/assets/javascripts/lib/pageslide.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);