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

Commit

Permalink
Fix small glitch in PreviewFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Apr 8, 2015
1 parent 6fbe54c commit 1d5ff83
Show file tree
Hide file tree
Showing 2 changed files with 4 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.

Expand Up @@ -89,7 +89,9 @@ Class.create("PreviewFactory", {
if(img == null || oImageToLoad.PFacLoader == null) return;
var newImg = oImageToLoad.editorClass.prototype.getPreview(oImageToLoad.ajxpNode);
newImg.setAttribute("data-is_loaded", "true");
img.parentNode.replaceChild(newImg, img);
if(img.parentNode) {
img.parentNode.replaceChild(newImg, img);
}
oImageToLoad.mainObject.IMAGE_ELEMENT = newImg;
this.resizeThumbnail(newImg);
oImageToLoad.PFacLoader = null;
Expand Down

0 comments on commit 1d5ff83

Please sign in to comment.