Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Test modal.currentLigtBox.parentNode before calling remove
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Dec 21, 2013
1 parent bab86f0 commit 0253234
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/plugins/gui.ajax/res/js/ajaxplorer.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion core/src/plugins/gui.ajax/res/js/lib/leightbox/lightbox.js
Expand Up @@ -210,7 +210,7 @@ function initialize(){
//modal.close();
if(modal.currentLightBoxElement){
removeLightboxFromElement(modal.currentLightBoxElement);
if(modal.currentLightBoxModal) {
if(modal.currentLightBoxModal && modal.currentLightBoxModal.parentNode) {
modal.currentLightBoxModal.remove();
}
modal.currentLightBoxElement = null;
Expand Down

0 comments on commit 0253234

Please sign in to comment.