Remove erro-cover on close and loadComplete

This commit is contained in:
chris 2013-10-20 21:16:17 +08:00
parent 606ac05563
commit 8e168b0fe1
1 changed files with 2 additions and 1 deletions

View File

@ -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);